ucar.grib.grib2
Class Grib2Tables

java.lang.Object
  extended by ucar.grib.grib2.Grib2Tables

public class Grib2Tables
extends java.lang.Object

Class contains most of the hard coded tables for Grib2. Tables extracted from PDS and GDS sections.


Nested Class Summary
static class Grib2Tables.VectorComponentFlag
          enum for componet_flag for both Grib2 and Grib1
 
Constructor Summary
Grib2Tables()
           
 
Method Summary
static java.lang.String getEnsembleType(int productType, int type)
          Makes a Ensemble, Derived, Probability or error type
static java.lang.String getGridName(int gdtn)
          .
static java.lang.String getProductDefinitionName(int productDefinition)
          productDefinition Name.
static int getProjectionType(int gridType)
          gets the ProjectionType.
static java.lang.String getShapeName(int shape)
          .
static java.lang.String getTimeRangeUnitName(int timeRangeUnit)
          return Time Range Unit Name from code table 4.4.
static java.lang.String getTypeGenProcessName(int typeGenProcess)
           
static java.lang.String getTypeGenProcessName(java.lang.String typeGenProcess)
          typeGenProcess name.
static java.lang.String getTypeSurfaceName(int id)
          type of vertical coordinate: Name code table 4.5.
static java.lang.String getTypeSurfaceNameShort(int id)
          type of vertical coordinate: short Name derived from code table 4.5.
static java.lang.String getTypeSurfaceUnit(int id)
          type of vertical coordinate: Units.
static java.lang.String makeSuffix(GribGridRecord ggr)
          Makes a Ensemble, Derived, Probability or error Suffix
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2Tables

public Grib2Tables()
Method Detail

getProductDefinitionName

public static java.lang.String getProductDefinitionName(int productDefinition)
productDefinition Name. from code table 4.0.

Parameters:
productDefinition - productDefinition
Returns:
ProductDefinitionName

getTypeGenProcessName

public static final java.lang.String getTypeGenProcessName(java.lang.String typeGenProcess)
typeGenProcess name. GRIB2 - TABLE 4.3 TYPE OF GENERATING PROCESS Section 4, Octet 12 Created 05/11/05

Parameters:
typeGenProcess - _more_
Returns:
GenProcessName

getTypeGenProcessName

public static final java.lang.String getTypeGenProcessName(int typeGenProcess)

getTimeRangeUnitName

public static java.lang.String getTimeRangeUnitName(int timeRangeUnit)
return Time Range Unit Name from code table 4.4.

Parameters:
timeRangeUnit - timeRangeUnit
Returns:
TimeRangeUnitName

getTypeSurfaceName

public static java.lang.String getTypeSurfaceName(int id)
type of vertical coordinate: Name code table 4.5.

Parameters:
id - surface type
Returns:
SurfaceName

getTypeSurfaceNameShort

public static java.lang.String getTypeSurfaceNameShort(int id)
type of vertical coordinate: short Name derived from code table 4.5.

Parameters:
id - surfaceType
Returns:
SurfaceNameShort

getTypeSurfaceUnit

public static java.lang.String getTypeSurfaceUnit(int id)
type of vertical coordinate: Units. code table 4.5.

Parameters:
id - units id as int
Returns:
surfaceUnit

makeSuffix

public static java.lang.String makeSuffix(GribGridRecord ggr)
Makes a Ensemble, Derived, Probability or error Suffix

Parameters:
ggr - GribGridRecord
Returns:
suffix as String

getEnsembleType

public static java.lang.String getEnsembleType(int productType,
                                               int type)
Makes a Ensemble, Derived, Probability or error type

Parameters:
productType, - productType
type - of ensemble, derived, probability
Returns:
Ensemble type as String

getGridName

public static java.lang.String getGridName(int gdtn)
.

Parameters:
gdtn - Grid definition template number same as type of grid
Returns:
GridName as a String

getProjectionType

public static final int getProjectionType(int gridType)
gets the ProjectionType.

Parameters:
gridType - GridDefRecord
Returns:
ProjectionType

getShapeName

public static java.lang.String getShapeName(int shape)
.

Parameters:
shape - as an int
Returns:
shapeName as a String