public class GempakGridRecord extends java.lang.Object implements GridRecord
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
GempakGridRecord(int number,
int[] header)
Create a grid header from the integer bits
|
Modifier and Type | Method and Description |
---|---|
int |
cdmVariableHash()
A hash code to group records into a CDM variable
|
java.lang.String |
cdmVariableName(GridTableLookup lookup,
boolean useLevel,
boolean useStat)
A unique name for the CDM variable, must be consistent with cdmVariableHash
|
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 |
getParameterDescription()
Get the parameter description
|
java.lang.String |
getParameterName()
Get the parameter name
|
java.util.Date |
getReferenceTime()
Get the first reference time of this GridRecord
|
java.lang.String |
getTimeUdunitName()
Get the time unit as a String.
|
int |
getTimeUnit()
Get the time unit as a code, which should be Grib2 table 4.4.
|
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
|
public java.lang.String time1
public java.lang.String time2
public int level1
public int level2
public int ivcord
public java.lang.String param
public int gridNumber
public int packingType
public NavigationBlock navBlock
public GempakGridRecord(int number, int[] header)
number
- grid numberheader
- integer bitspublic double getLevel1()
getLevel1
in interface GridRecord
public double getLevel2()
getLevel2
in interface GridRecord
public int getLevelType1()
getLevelType1
in interface GridRecord
public int getLevelType2()
getLevelType2
in interface GridRecord
public java.util.Date getReferenceTime()
getReferenceTime
in interface GridRecord
public java.util.Date getValidTime()
getValidTime
in interface GridRecord
public int getValidTimeOffset()
public java.lang.String getParameterName()
getParameterName
in interface GridRecord
public java.lang.String getParameterDescription()
getParameterDescription
in interface GridRecord
public java.lang.String getGridDefRecordId()
getGridDefRecordId
in interface GridRecord
public int getGridNumber()
public int getDecimalScale()
getDecimalScale
in interface GridRecord
public int getTimeUnit()
GridRecord
getTimeUnit
in interface GridRecord
public java.lang.String getTimeUdunitName()
GridRecord
getTimeUdunitName
in interface GridRecord
public int cdmVariableHash()
GridRecord
cdmVariableHash
in interface GridRecord
public java.lang.String cdmVariableName(GridTableLookup lookup, boolean useLevel, boolean useStat)
GridRecord
cdmVariableName
in interface GridRecord
public java.lang.String toString()
toString
in class java.lang.Object