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 codeTable3_1(int gdtn)
          Grid Definition Template
static java.lang.String codeTable3_2(int shape)
          Shape of the Earth
static java.lang.String codeTable4_0(int productDefinition)
          Product Definition Template Code table 4.0.
static java.lang.String codeTable4_10(int code)
          Code Table 4.10: Type of statistical processing
static java.lang.String codeTable4_10short(int code)
          Code Table 4.10: Type of statistical processing, short form For embedding in a variable name
static java.lang.String codeTable4_11(int code)
          Code Table 4.11: Type of time intervals
static java.lang.String codeTable4_3(int typeGenProcess)
           
static java.lang.String codeTable4_4(int code44)
          return Time Range Unit Name from code table 4.4.
static java.lang.String codeTable4_5(int id)
          type of vertical coordinate: Name code table 4.5.
static java.lang.String codeTable4_9(int code)
          Code Table 4.9: Probability Type
static java.lang.String getEnsembleType(int productType, int type)
          Gets a Ensemble type, Derived or Perturbed
static int getProjectionType(int gridType)
          Gets the ProjectionType based on the Grid definition template number.
static java.lang.String getTimeUnitFromTable4_4(int code44)
          return a udunits time unit
static java.lang.String getTypeGenProcessName(java.lang.String typeGenProcess)
          typeGenProcess name.
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2Tables

public Grib2Tables()
Method Detail

codeTable3_1

public static java.lang.String codeTable3_1(int gdtn)
Grid Definition Template

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 based on the Grid definition template number. From code table 3.1

Parameters:
gridType - Grid definition template number
Returns:
ProjectionType

codeTable3_2

public static java.lang.String codeTable3_2(int shape)
Shape of the Earth

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

codeTable4_0

public static java.lang.String codeTable4_0(int productDefinition)
Product Definition Template 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

codeTable4_3

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

codeTable4_4

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

Parameters:
code44 - code for table 4.4
Returns:
Time Range Unit Name from table 4.4

getTimeUnitFromTable4_4

public static java.lang.String getTimeUnitFromTable4_4(int code44)
return a udunits time unit

Parameters:
code44 - code for table 4.4
Returns:
udunits time unit

codeTable4_5

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

getEnsembleType

public static java.lang.String getEnsembleType(int productType,
                                               int type)
Gets a Ensemble type, Derived or Perturbed

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

codeTable4_9

public static java.lang.String codeTable4_9(int code)
Code Table 4.9: Probability Type

Parameters:
code - number
Returns:
String name

codeTable4_10

public static java.lang.String codeTable4_10(int code)
Code Table 4.10: Type of statistical processing

Parameters:
code - number
Returns:
String name

codeTable4_10short

public static java.lang.String codeTable4_10short(int code)
Code Table 4.10: Type of statistical processing, short form For embedding in a variable name

Parameters:
code - number
Returns:
String name, short form

codeTable4_11

public static java.lang.String codeTable4_11(int code)
Code Table 4.11: Type of time intervals

Parameters:
code - number
Returns:
String name