ucar.grib.grib1
Class GribPDSLevel

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

public final class GribPDSLevel
extends java.lang.Object

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


Constructor Summary
GribPDSLevel(int pds10, 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 java.lang.String getLevelDescription(int id)
          type of vertical coordinate: Description or short Name derived from ON388 - TABLE 3.
 java.lang.String getName()
          Name of this level.
static java.lang.String getNameShort(int id)
          short name of level.
static java.lang.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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GribPDSLevel

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

Parameters:
pds10 - part 1 of level code index
pds11 - part 2 of level code
pds12 - part 3 of level code
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 java.lang.String getName()
Name of this level.

Returns:
name as String

getLevelDescription

public static java.lang.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 java.lang.String getNameShort(int id)
short name of level.

Parameters:
id -
Returns:
name of level

getUnits

public static java.lang.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