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 GridRecordpublic double getLevel2()
getLevel2 in interface GridRecordpublic int getLevelType1()
getLevelType1 in interface GridRecordpublic int getLevelType2()
getLevelType2 in interface GridRecordpublic java.util.Date getReferenceTime()
getReferenceTime in interface GridRecordpublic java.util.Date getValidTime()
getValidTime in interface GridRecordpublic int getValidTimeOffset()
public java.lang.String getParameterName()
getParameterName in interface GridRecordpublic java.lang.String getParameterDescription()
getParameterDescription in interface GridRecordpublic java.lang.String getGridDefRecordId()
getGridDefRecordId in interface GridRecordpublic int getGridNumber()
public int getDecimalScale()
getDecimalScale in interface GridRecordpublic int getTimeUnit()
GridRecordgetTimeUnit in interface GridRecordpublic java.lang.String getTimeUdunitName()
GridRecordgetTimeUdunitName in interface GridRecordpublic int cdmVariableHash()
GridRecordcdmVariableHash in interface GridRecordpublic java.lang.String cdmVariableName(GridTableLookup lookup, boolean useLevel, boolean useStat)
GridRecordcdmVariableName in interface GridRecordpublic java.lang.String toString()
toString in class java.lang.Object