net.sourceforge.jgrib
Class GribPDSLevel

java.lang.Object
  extended by net.sourceforge.jgrib.GribPDSLevel

public class GribPDSLevel
extends java.lang.Object

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

2006-07-26 frv_peg: Added NCEP extention levels for use of GFS files.

(level: 117, 211,212,213,222,223,232,233,242,243,244)

See: table3.html


Constructor Summary
GribPDSLevel(int pds10, int pds11, int pds12)
          Constructor.
 
Method Summary
 int compare(GribPDSLevel level)
          rdg - added this method to be used in a comparator for sorting while extracting records.
 boolean equals(java.lang.Object obj)
          rdg - added equals method didn't check everything as most are set in the constructor
 java.lang.String getDesc()
           
 int getIndex()
           
 boolean getIsIncreasingUp()
           
 boolean getIsNumeric()
           
 boolean getIsSingleLayer()
           
 java.lang.String getLevel()
           
 java.lang.String getName()
           
 java.lang.String getUnits()
           
 float getValue1()
           
 float getValue2()
           
 boolean isDepth()
           
 java.lang.String toString()
          Formats the class for output
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, 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
pds11 - part 2 of level code
pds12 - part 3 of level code
Method Detail

isDepth

public boolean isDepth()
Returns:
true if negative z-value

getIndex

public int getIndex()
Returns:
Index

getName

public java.lang.String getName()
Returns:
Name

getLevel

public java.lang.String getLevel()
Returns:
Level

getDesc

public java.lang.String getDesc()
Returns:
Description

getUnits

public java.lang.String getUnits()
Returns:
Unit

getValue1

public float getValue1()
Returns:
Value1

getValue2

public float getValue2()
Returns:
Value2

getIsNumeric

public boolean getIsNumeric()
Returns:
true/false if numeric

getIsIncreasingUp

public boolean getIsIncreasingUp()
Returns:
true/false if increasing up

getIsSingleLayer

public boolean getIsSingleLayer()
Returns:
true/false, if is 2D variable

toString

public java.lang.String toString()
Formats the class for output

Overrides:
toString in class java.lang.Object
Returns:
String holding description of the object parameters
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object obj)
rdg - added equals method didn't check everything as most are set in the constructor

Overrides:
equals in class java.lang.Object
Parameters:
obj - - Object to check
Returns:
true/false depends upon succes
See Also:
Object.equals(java.lang.Object)

compare

public int compare(GribPDSLevel level)
rdg - added this method to be used in a comparator for sorting while extracting records.

Parameters:
level -
Returns:
- -1 if level is "less than" this, 0 if equal, 1 if level is "greater than" this.