ucar.nc2.iosp.grid
Class GridDefRecord

java.lang.Object
  extended by ucar.nc2.iosp.grid.GridDefRecord
Direct Known Subclasses:
McGridDefRecord, NavigationBlock

public abstract class GridDefRecord
extends java.lang.Object

Class to represent the grid definition (projection) information purpose is to convert from String representation to native value.


Field Summary
static java.lang.String DX
          distance in X direction
static java.lang.String DY
          distance in Y direction
static java.lang.String GDS_KEY
          GDS key
static java.lang.String GRID_SHAPE_CODE
          LoV
static java.lang.String GRID_TYPE
          grid type
static java.lang.String LA1
          La1
static java.lang.String LA2
          La2
static java.lang.String LAD
          LoD
static java.lang.String LATIN1
          first lat
static java.lang.String LATIN2
          second lat
static java.lang.String LO1
          Lo1
static java.lang.String LO2
          Lo2
static java.lang.String LOV
          LoV
static java.lang.String MAJOR_AXIS_EARTH
          major axis of earth
static java.lang.String MINOR_AXIS_EARTH
          minor axis of earth
static java.lang.String NX
          number of points in X direction (columns)
static java.lang.String NY
          number of points in Y direction (rows)
static java.lang.String PROJ
          LoV
static java.lang.String RADIUS_SPHERICAL_EARTH
          Radius of spherical earth
static java.lang.String RESOLUTION
          resolution
static java.lang.String WIND_FLAG
          Wind flag
 
Constructor Summary
GridDefRecord()
          constructor.
 
Method Summary
 void addParam(java.lang.String key, java.lang.String value)
          adds a param and value.
abstract  java.lang.String getGroupName()
          Get a short name for this GDSKey for the netCDF group.
 java.util.Set getKeys()
          adds a param and value.
 java.lang.String getParam(java.lang.String key)
          adds a param and value.
 double readDouble(java.lang.String name)
          returns the value of the param.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GDS_KEY

public static final java.lang.String GDS_KEY
GDS key

See Also:
Constant Field Values

WIND_FLAG

public static final java.lang.String WIND_FLAG
Wind flag

See Also:
Constant Field Values

GRID_TYPE

public static final java.lang.String GRID_TYPE
grid type

See Also:
Constant Field Values

NX

public static final java.lang.String NX
number of points in X direction (columns)

See Also:
Constant Field Values

NY

public static final java.lang.String NY
number of points in Y direction (rows)

See Also:
Constant Field Values

DX

public static final java.lang.String DX
distance in X direction

See Also:
Constant Field Values

DY

public static final java.lang.String DY
distance in Y direction

See Also:
Constant Field Values

RESOLUTION

public static final java.lang.String RESOLUTION
resolution

See Also:
Constant Field Values

LATIN1

public static final java.lang.String LATIN1
first lat

See Also:
Constant Field Values

LATIN2

public static final java.lang.String LATIN2
second lat

See Also:
Constant Field Values

LA1

public static final java.lang.String LA1
La1

See Also:
Constant Field Values

LO1

public static final java.lang.String LO1
Lo1

See Also:
Constant Field Values

LA2

public static final java.lang.String LA2
La2

See Also:
Constant Field Values

LO2

public static final java.lang.String LO2
Lo2

See Also:
Constant Field Values

LAD

public static final java.lang.String LAD
LoD

See Also:
Constant Field Values

LOV

public static final java.lang.String LOV
LoV

See Also:
Constant Field Values

PROJ

public static final java.lang.String PROJ
LoV

See Also:
Constant Field Values

GRID_SHAPE_CODE

public static final java.lang.String GRID_SHAPE_CODE
LoV

See Also:
Constant Field Values

RADIUS_SPHERICAL_EARTH

public static final java.lang.String RADIUS_SPHERICAL_EARTH
Radius of spherical earth

See Also:
Constant Field Values

MAJOR_AXIS_EARTH

public static final java.lang.String MAJOR_AXIS_EARTH
major axis of earth

See Also:
Constant Field Values

MINOR_AXIS_EARTH

public static final java.lang.String MINOR_AXIS_EARTH
minor axis of earth

See Also:
Constant Field Values
Constructor Detail

GridDefRecord

public GridDefRecord()
constructor.

Method Detail

addParam

public final void addParam(java.lang.String key,
                           java.lang.String value)
adds a param and value.

Parameters:
key - name of the param
value - of the param

getParam

public final java.lang.String getParam(java.lang.String key)
adds a param and value.

Parameters:
key - name of the param
Returns:
the value or null

getGroupName

public abstract java.lang.String getGroupName()
Get a short name for this GDSKey for the netCDF group. Subclasses should implement as a short description

Returns:
short name

getKeys

public final java.util.Set getKeys()
adds a param and value.

Parameters:
key - name of the param
Returns:
the value or null

readDouble

public final double readDouble(java.lang.String name)
returns the value of the param.

Parameters:
name -
Returns:
value, or NaN if value doest exist