ucar.nc2.iosp.gempak
Class GempakGridRecord

java.lang.Object
  extended by ucar.nc2.iosp.gempak.GempakGridRecord
All Implemented Interfaces:
GridRecord

public class GempakGridRecord
extends java.lang.Object
implements GridRecord

A class to hold grid record information

Version:
$Revision: 1.3 $
Author:
IDV Development Team

Field Summary
 int gridNumber
          grid number
 int ivcord
          coordinate type
 int level1
          Level 1
 int level2
          Level 2
 NavigationBlock navBlock
          packing type
 int packingType
          packing type
 java.lang.String param
          parameter
 java.lang.String time1
          Time 1
 java.lang.String time2
          Time 2
 
Constructor Summary
GempakGridRecord(int number, int[] header)
          Create a grid header from the integer bits
 
Method Summary
 int getDecimalScale()
          Get the decimal scale
 java.lang.String getGridDefRecordId()
          Get the grid def record id
 int getGridNumber()
          Get the grid number
 double getLevel1()
          Get the first level of this GridRecord
 double getLevel2()
          Get the second level of this GridRecord
 int getLevelType1()
          Get the type for the first level of this GridRecord
 int getLevelType2()
          Get the type for the second level of this GridRecord
 java.lang.String getParameterName()
          Get the parameter name
 java.util.Date getReferenceTime()
          Get the first reference time of this GridRecord
 java.util.Date getValidTime()
          Get the valid time for this grid.
 int getValidTimeOffset()
          Get valid time offset (minutes) of this GridRecord
 java.lang.String toString()
          Get a String representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

time1

public java.lang.String time1
Time 1


time2

public java.lang.String time2
Time 2


level1

public int level1
Level 1


level2

public int level2
Level 2


ivcord

public int ivcord
coordinate type


param

public java.lang.String param
parameter


gridNumber

public int gridNumber
grid number


packingType

public int packingType
packing type


navBlock

public NavigationBlock navBlock
packing type

Constructor Detail

GempakGridRecord

public GempakGridRecord(int number,
                        int[] header)
Create a grid header from the integer bits

Parameters:
number - grid number
header - integer bits
Method Detail

getLevel1

public double getLevel1()
Get the first level of this GridRecord

Specified by:
getLevel1 in interface GridRecord
Returns:
the first level value

getLevel2

public double getLevel2()
Get the second level of this GridRecord

Specified by:
getLevel2 in interface GridRecord
Returns:
the second level value

getLevelType1

public int getLevelType1()
Get the type for the first level of this GridRecord

Specified by:
getLevelType1 in interface GridRecord
Returns:
level type

getLevelType2

public int getLevelType2()
Get the type for the second level of this GridRecord

Specified by:
getLevelType2 in interface GridRecord
Returns:
level type

getReferenceTime

public java.util.Date getReferenceTime()
Get the first reference time of this GridRecord

Specified by:
getReferenceTime in interface GridRecord
Returns:
reference time

getValidTime

public java.util.Date getValidTime()
Get the valid time for this grid.

Specified by:
getValidTime in interface GridRecord
Returns:
valid time

getValidTimeOffset

public int getValidTimeOffset()
Get valid time offset (minutes) of this GridRecord

Specified by:
getValidTimeOffset in interface GridRecord
Returns:
time offset

getParameterName

public java.lang.String getParameterName()
Get the parameter name

Specified by:
getParameterName in interface GridRecord
Returns:
parameter name

getGridDefRecordId

public java.lang.String getGridDefRecordId()
Get the grid def record id

Specified by:
getGridDefRecordId in interface GridRecord
Returns:
parameter name

getGridNumber

public int getGridNumber()
Get the grid number

Returns:
grid number

getDecimalScale

public int getDecimalScale()
Get the decimal scale

Specified by:
getDecimalScale in interface GridRecord
Returns:
decimal scale

toString

public java.lang.String toString()
Get a String representation of this object

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object