cdm/src/main/java/ucar/nc2/iosp/nids/Nidsheader.java
static String pname_lookup( int code, int elevation )
    {
      String pname = null;
      switch( code ){
          case 15:
              if(elevation == 1)
                  pname = "NAX";
              else if(elevation == 3)
                  pname = "NBX";
              else
                  pname = "N" + elevation/2 + "X";
              break;
          case 16:
              if(elevation == 1)
                  pname = "NAC";
              else if(elevation == 3)
                  pname = "NBC";
              else
                  pname = "N" + elevation/2 + "C";
              break;
          case 17:
              if(elevation == 1)
                  pname = "NAK";
              else if(elevation == 3)
                  pname = "NBK";
              else
                  pname = "N" + elevation/2 + "K";
              break;
          case 18:
              if(elevation == 1)
                  pname = "NAH";
              else if(elevation == 3)
                  pname = "NBH";
              else
                  pname = "N" + elevation/2 + "H";
              break;
          case 19:
              pname = "N" + elevation + "R";

              break;
          case 20:
              pname = "N0Z";
            break;
          case 25:
              pname = "N0W";
            break;
          case 27:
              pname = "N" + elevation + "V";

            break;
          case 28:
            pname = "NSP";
            break;
          case 30:
            pname = "NSW";
            break;
          case 36:
            pname = "NCO";
            break;
          case 37:
            pname = "NCR";
            break;
          case 38:
            pname = "NCZ";
            break;
          case 41:
            pname = "NET";
            break;
          case 48:
            pname = "NVW";
            break;
          case 56:
              pname = "N" + elevation + "S";

            break;
          case 57:
            pname = "NVL";
            break;
          case 65:
            pname = "NLL";
            break;
          case 66:
            pname = "NML";
            break;
          case 78:
            pname = "N1P";
            break;
          case 79:
            pname = "N3P";
            break;
          case 80:
            pname = "NTP";
            break;
          case 81:
            pname = "DPA";
            break;
          case 90:
            pname = "NHL";
            break;
          case 94:
            if(elevation == 1)
                pname = "NAQ";
            else if(elevation == 3)
                pname = "NBQ";
            else
                pname = "N" + elevation/2 + "Q";
            break;
          case 99:
            if(elevation == 1)
                pname = "NAU";
            else if(elevation == 3)
                pname = "NBU";
            else
                pname = "N" + elevation/2 + "U";
            break;
          case 134:
            pname = "DVL";
            break;
          case 135:
            pname = "EET";
            break;
          case 182:
            pname = "DV";
            break;
          case 187:
          case 181:
            pname = "R";
            break;
          case 186:
          case 180:
            pname = "DR";
            break;
          case 183:
            pname = "V";
            break;
          case 185:
            pname = "SW";
            break;

          default:
              break;

      }

      return pname;

    }
static String pname_lookup( int code, int elevation )
    {
      String pname = null;
      switch( code ){
          case 15:
              if(elevation == 1)
                  pname = "NAX";
              else if(elevation == 3)
                  pname = "NBX";
              else
                  pname = "N" + elevation/2 + "X";
              break;
          case 16:
              if(elevation == 1)
                  pname = "NAC";
              else if(elevation == 3)
                  pname = "NBC";
              else
                  pname = "N" + elevation/2 + "C";
              break;
          case 17:
              if(elevation == 1)
                  pname = "NAK";
              else if(elevation == 3)
                  pname = "NBK";
              else
                  pname = "N" + elevation/2 + "K";
              break;
          case 18:
              if(elevation == 1)
                  pname = "NAH";
              else if(elevation == 3)
                  pname = "NBH";
              else
                  pname = "N" + elevation/2 + "H";
              break;
          case 19:
              pname = "N" + elevation + "R";

              break;
          case 20:
              pname = "N0Z";
            break;
          case 25:
              pname = "N0W";
            break;
          case 27:
              pname = "N" + elevation + "V";

            break;
          case 28:
            pname = "NSP";
            break;
          case 30:
            pname = "NSW";
            break;
          case 36:
            pname = "NCO";
            break;
          case 37:
            pname = "NCR";
            break;
          case 38:
            pname = "NCZ";
            break;
          case 41:
            pname = "NET";
            break;
          case 48:
            pname = "NVW";
            break;
          case 56:
              pname = "N" + elevation + "S";

            break;
          case 57:
            pname = "NVL";
            break;
          case 65:
            pname = "NLL";
            break;
          case 66:
            pname = "NML";
            break;
          case 78:
            pname = "N1P";
            break;
          case 79:
            pname = "N3P";
            break;
          case 80:
            pname = "NTP";
            break;
          case 81:
            pname = "DPA";
            break;
          case 90:
            pname = "NHL";
            break;
          case 94:
            if(elevation == 1)
                pname = "NAQ";
            else if(elevation == 3)
                pname = "NBQ";
            else
                pname = "N" + elevation/2 + "Q";
            break;
          case 99:
            if(elevation == 1)
                pname = "NAU";
            else if(elevation == 3)
                pname = "NBU";
            else
                pname = "N" + elevation/2 + "U";
            break;
          case 134:
            pname = "DVL";
            break;
          case 135:
            pname = "EET";
            break;
          case 182:
            pname = "DV";
            break;
          case 187:
          case 181:
            pname = "R";
            break;
          case 186:
          case 180:
            pname = "DR";
            break;
          case 183:
            pname = "V";
            break;
          case 185:
            pname = "SW";
            break;

          default:
              break;

      }

      return pname;

    }
static String pname_lookup ( int code , int elevation ) { String pname = null ; switch ( code ) { case 15 : if ( elevation == 1 ) pname = "NAX" ; else if ( elevation == 3 ) pname = "NBX" ; else pname = "N" + elevation / 2 + "X" ; break ; case 16 : if ( elevation == 1 ) pname = "NAC" ; else if ( elevation == 3 ) pname = "NBC" ; else pname = "N" + elevation / 2 + "C" ; break ; case 17 : if ( elevation == 1 ) pname = "NAK" ; else if ( elevation == 3 ) pname = "NBK" ; else pname = "N" + elevation / 2 + "K" ; break ; case 18 : if ( elevation == 1 ) pname = "NAH" ; else if ( elevation == 3 ) pname = "NBH" ; else pname = "N" + elevation / 2 + "H" ; break ; case 19 : pname = "N" + elevation + "R" ; break ; case 20 : pname = "N0Z" ; break ; case 25 : pname = "N0W" ; break ; case 27 : pname = "N" + elevation + "V" ; break ; case 28 : pname = "NSP" ; break ; case 30 : pname = "NSW" ; break ; case 36 : pname = "NCO" ; break ; case 37 : pname = "NCR" ; break ; case 38 : pname = "NCZ" ; break ; case 41 : pname = "NET" ; break ; case 48 : pname = "NVW" ; break ; case 56 : pname = "N" + elevation + "S" ; break ; case 57 : pname = "NVL" ; break ; case 65 : pname = "NLL" ; break ; case 66 : pname = "NML" ; break ; case 78 : pname = "N1P" ; break ; case 79 : pname = "N3P" ; break ; case 80 : pname = "NTP" ; break ; case 81 : pname = "DPA" ; break ; case 90 : pname = "NHL" ; break ; case 94 : if ( elevation == 1 ) pname = "NAQ" ; else if ( elevation == 3 ) pname = "NBQ" ; else pname = "N" + elevation / 2 + "Q" ; break ; case 99 : if ( elevation == 1 ) pname = "NAU" ; else if ( elevation == 3 ) pname = "NBU" ; else pname = "N" + elevation / 2 + "U" ; break ; case 134 : pname = "DVL" ; break ; case 135 : pname = "EET" ; break ; case 182 : pname = "DV" ; break ; case 187 : case 181 : pname = "R" ; break ; case 186 : case 180 : pname = "DR" ; break ; case 183 : pname = "V" ; break ; case 185 : pname = "SW" ; break ; default : break ; } return pname ; }
/*
product id table
@param code
@param elevation
@return
/ * product id table