ucar.grib.grib1
Class Grib1Tables

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

public class Grib1Tables
extends Object

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


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

Constructor Detail

Grib1Tables

public Grib1Tables()
Method Detail

getTypeGenProcessName

public static final 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 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 String getGridDefinition(int grid)
GDS Octet 6 WMO Table 6 Grid Definition


getCenter_idName

public static String getCenter_idName(int center)
Center name

Parameters:
center - int
Returns:
center name

getSubCenter_idName

public static final 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

getTimeRangeIndicatorName

public static String getTimeRangeIndicatorName(int type)
Time Range Indicator Name. Table 5

Parameters:
type -
Returns:
name of ProductDefinition

getTimeUnit

public static String getTimeUnit(int code,
                                 boolean udunits)
Unit name from Grib1 Table 4.

Parameters:
code - time Unit
udunits - if true, use udunit time unit, assumes you have taken care of the factor
Returns:
Unit name from Grib1 Table 4

getTimeRange

public static String getTimeRange(int tRange)
tRange indicator.

Parameters:
tRange - indicator
Returns:
tRange indicator

getLevelDescription

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

Parameters:
id -
Returns:
name of level

getLevelUnits

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

Parameters:
id - units number
Returns:
unit as String

getGridName

public static String getGridName(int type)
Get Grid name.

Parameters:
type -
Returns:
name

getShapeName

public static 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

getTable5

public final String getTable5(int timeRange)
TimeRange as String.

Returns:
timeRange


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.