cdm/src/main/java/ucar/nc2/iosp/nids/Nidsheader.java
static double code_reslookup( int code )
    {

      double data_res;

      final  double[] res = {
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /*   0-  9 */
        0,    0,    0,    0,    0,    0,    1,    2,    4,    1,    /*  10- 19 */
        2,    4, 0.25,  0.5,    1, 0.25,  0.5,    1, 0.25,    0,    /*  20- 29 */
        1,    0,    1,    0,    0,    1,    4,    1,    4,    0,    /*  30- 39 */
        0,    4,    0,    0,    0,    0,    0,    0,    0,    0,    /*  40- 49 */
        0,    0,    0,    0,    0,  0.5,    1,    4,    0,    0,    /*  50- 59 */
        0,    0,    0,    4,    4,    4,    4,    0,    0,    0,    /*  60- 69 */
        0,    0,    0,    0,    0,    0,    0,    0,    1,    1,    /*  70- 79 */
        1,    4,    0,    0,    0,    0,    0,    0,    0,    4,    /*  80- 89 */
        4,    0,    0,    0,    1,    0,    0,    0,    0, 0.25,    /*  90- 99 */
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /* 100-109 */
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /* 110-119 */
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /* 120-129 */
        0,    0,    0,    0,    1,    1,    0,    0,    1,    0,    /* 130-139 */
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /* 140-149 */
        0,    0,    0,    0,    0,    0,    0,    0,    0, 0.25,    /* 150-159 */
        0, 0.25,    0, 0.25,    0, 0.25,    0,    0,    0,    2,    /* 160-169 */
     0.25,    2, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25,    0,    0,    /* 170-179 */
        0,  150.0, 150.0, 0,    0,    0, 300.0,   0,    0,    0,    /* 180-189 */
      };


      if ( code < 0 || code > 189 )
        data_res = 0;
      else
        data_res = res[code];

      return data_res;

    }
static double code_reslookup( int code )
    {

      double data_res;

      final  double[] res = {
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /*   0-  9 */
        0,    0,    0,    0,    0,    0,    1,    2,    4,    1,    /*  10- 19 */
        2,    4, 0.25,  0.5,    1, 0.25,  0.5,    1, 0.25,    0,    /*  20- 29 */
        1,    0,    1,    0,    0,    1,    4,    1,    4,    0,    /*  30- 39 */
        0,    4,    0,    0,    0,    0,    0,    0,    0,    0,    /*  40- 49 */
        0,    0,    0,    0,    0,  0.5,    1,    4,    0,    0,    /*  50- 59 */
        0,    0,    0,    4,    4,    4,    4,    0,    0,    0,    /*  60- 69 */
        0,    0,    0,    0,    0,    0,    0,    0,    1,    1,    /*  70- 79 */
        1,    4,    0,    0,    0,    0,    0,    0,    0,    4,    /*  80- 89 */
        4,    0,    0,    0,    1,    0,    0,    0,    0, 0.25,    /*  90- 99 */
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /* 100-109 */
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /* 110-119 */
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /* 120-129 */
        0,    0,    0,    0,    1,    1,    0,    0,    1,    0,    /* 130-139 */
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    /* 140-149 */
        0,    0,    0,    0,    0,    0,    0,    0,    0, 0.25,    /* 150-159 */
        0, 0.25,    0, 0.25,    0, 0.25,    0,    0,    0,    2,    /* 160-169 */
     0.25,    2, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25,    0,    0,    /* 170-179 */
        0,  150.0, 150.0, 0,    0,    0, 300.0,   0,    0,    0,    /* 180-189 */
      };


      if ( code < 0 || code > 189 )
        data_res = 0;
      else
        data_res = res[code];

      return data_res;

    }
static double code_reslookup ( int code ) { double data_res ; final double [ ] res = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , /*   0-  9 */ 0 , 0 , 0 , 0 , 0 , 0 , 1 , 2 , 4 , 1 , /*  10- 19 */ 2 , 4 , 0.25 , 0.5 , 1 , 0.25 , 0.5 , 1 , 0.25 , 0 , /*  20- 29 */ 1 , 0 , 1 , 0 , 0 , 1 , 4 , 1 , 4 , 0 , /*  30- 39 */ 0 , 4 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , /*  40- 49 */ 0 , 0 , 0 , 0 , 0 , 0.5 , 1 , 4 , 0 , 0 , /*  50- 59 */ 0 , 0 , 0 , 4 , 4 , 4 , 4 , 0 , 0 , 0 , /*  60- 69 */ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , /*  70- 79 */ 1 , 4 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 4 , /*  80- 89 */ 4 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0.25 , /*  90- 99 */ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , /* 100-109 */ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , /* 110-119 */ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , /* 120-129 */ 0 , 0 , 0 , 0 , 1 , 1 , 0 , 0 , 1 , 0 , /* 130-139 */ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , /* 140-149 */ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0.25 , /* 150-159 */ 0 , 0.25 , 0 , 0.25 , 0 , 0.25 , 0 , 0 , 0 , 2 , /* 160-169 */ 0.25 , 2 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0.25 , 0 , 0 , /* 170-179 */ 0 , 150.0 , 150.0 , 0 , 0 , 0 , 300.0 , 0 , 0 , 0 , /* 180-189 */ } ; if ( code < 0 || code > 189 ) data_res = 0 ; else data_res = res [ code ] ; return data_res ; }
/*
product resolution
@param code
@return
/ * product resolution