ucar.grib.grib1
Class GribPDSLevel

java.lang.Object
  extended by ucar.grib.grib1.GribPDSLevel

public final class GribPDSLevel
extends Object

A class containing static methods which deliver names of levels and units for byte codes from GRIB records.


Constructor Summary
GribPDSLevel(int code, int pds11, int pds12)
          Constructor.
 
Method Summary
 int getIndex()
          Index number from table 3 - can be used for comparison even if the description of the level changes.
static String getLevelDescription(int id)
          type of vertical coordinate: Description or short Name derived from ON388 - TABLE 3.
 String getName()
          Name of this level.
static String getNameShort(int id)
          short name of level.
static String getUnits(int id)
          type of vertical coordinate: units derived from ON388 - TABLE 3.
 float getValue1()
          gets the 1st value for the level.
 float getValue2()
          gets the 2nd value for the level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GribPDSLevel

public GribPDSLevel(int code,
                    int pds11,
                    int pds12)
Constructor. Creates a GribPDSLevel based on octets 10-12 of the PDS. Implements tables 3 and 3a.

Parameters:
code - level code index (Table 3 and 3a)
pds11 - first byte (octet 11)
pds12 - second byte (octet 12)
Method Detail

getIndex

public final int getIndex()
Index number from table 3 - can be used for comparison even if the description of the level changes.

Returns:
index

getName

public final String getName()
Name of this level.

Returns:
name as String

getLevelDescription

public static String getLevelDescription(int id)
type of vertical coordinate: Description or short Name derived from ON388 - TABLE 3.

Parameters:
id -
Returns:
level description as String

getNameShort

public static String getNameShort(int id)
short name of level.

Parameters:
id -
Returns:
name of level

getUnits

public static String getUnits(int id)
type of vertical coordinate: units derived from ON388 - TABLE 3.

Parameters:
id - units number
Returns:
unit as String

getValue1

public final float getValue1()
gets the 1st value for the level.

Returns:
level value 1

getValue2

public final float getValue2()
gets the 2nd value for the level.

Returns:
level value 2


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.