ucar.grib.grib1
Class Grib1Tables

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

public class Grib1Tables
extends java.lang.Object

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


Constructor Summary
Grib1Tables()
           
 
Method Summary
static java.lang.String getCenter_idName(int center)
          Center name
static java.lang.String getGridDefinition(int grid)
          GDS Octet 6 WMO Table 6 Grid Definition
static java.lang.String getLevelDescription(int id)
          type of vertical coordinate: Description or short Name derived from ON388 - TABLE 3.
static java.lang.String getLevelName(int id)
          short name of level.
static java.lang.String getLevelUnits(int id)
          type of vertical coordinate: units derived from ON388 - TABLE 3.
static java.lang.String getModelName(int center, int model)
          Currently only defined for center 7 NCEP
static java.lang.String getName(int type)
          Get Grid name.
static java.lang.String getProductDefinitionName(int type)
          ProductDefinition name.
static double getShapeMajorAxis()
          Grib 1 has static MajorAxis.
static double getShapeMinorAxis()
          Grib 1 has static MinorAxis.
static java.lang.String getShapeName(int code)
          shape of grid.
static double getShapeRadius()
          Grib 1 has static radius.
static java.lang.String getSubCenter_idName(int center_id, int subCenter)
          SubCenter as String defined by center.
static java.lang.String getTimeRange(int tRange)
          tRange indicator.
static java.lang.String getTimeUnit(int tUnit)
          tUnit time Unit.
static java.lang.String getTypeGenProcessName(int center, int typeGenProcess)
          Generating Type Process Name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1Tables

public Grib1Tables()
Method Detail

getTypeGenProcessName

public static final java.lang.String getTypeGenProcessName(int center,
                                                           int typeGenProcess)
Generating Type Process Name. ON388 - TABLE A. Generating Process or Model. from Originating Center 7 (USNWS NCEP). GRIB1 - PDS Octet 6. Revised 12/15/2005. Also used by Grib2

Parameters:
typeGenProcess -
Returns:
model Name

getModelName

public static final java.lang.String getModelName(int center,
                                                  int model)
Currently only defined for center 7 NCEP

Parameters:
center -
model -
Returns:
model for NCEP or null

getGridDefinition

public static java.lang.String getGridDefinition(int grid)
GDS Octet 6 WMO Table 6 Grid Definition


getCenter_idName

public static java.lang.String getCenter_idName(int center)
Center name

Parameters:
center - int
Returns:
center name

getSubCenter_idName

public static final java.lang.String getSubCenter_idName(int center_id,
                                                         int subCenter)
SubCenter as String defined by center. Only NCEP has sub-center table

Parameters:
center_id - center
subCenter - subCenter
Returns:
subCenter

getProductDefinitionName

public static java.lang.String getProductDefinitionName(int type)
ProductDefinition name.

Parameters:
type -
Returns:
name of ProductDefinition

getTimeUnit

public static java.lang.String getTimeUnit(int tUnit)
tUnit time Unit.

Parameters:
tUnit - time Unit
Returns:
tUnit type

getTimeRange

public static java.lang.String getTimeRange(int tRange)
tRange indicator.

Parameters:
tRange - indicator
Returns:
tRange indicator

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

getLevelName

public static java.lang.String getLevelName(int id)
short name of level.

Parameters:
id -
Returns:
name of level

getLevelUnits

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

Parameters:
id - units number
Returns:
unit as String

getName

public static java.lang.String getName(int type)
Get Grid name.

Parameters:
type -
Returns:
name

getShapeName

public static java.lang.String getShapeName(int code)
shape of grid.

Parameters:
code - grid shape code
Returns:
String grid shape name

getShapeRadius

public static final double getShapeRadius()
Grib 1 has static radius.

Returns:
ShapeRadius of 6367.47

getShapeMajorAxis

public static final double getShapeMajorAxis()
Grib 1 has static MajorAxis.

Returns:
ShapeMajorAxis of 6378.160

getShapeMinorAxis

public static final double getShapeMinorAxis()
Grib 1 has static MinorAxis.

Returns:
ShapeMinorAxis of 6356.775