public class McIDASGridRecord extends GridDirectory implements GridRecord
Constructor and Description |
---|
McIDASGridRecord(int offset,
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
|
McGridDefRecord |
getGridDefRecord()
Get the grid def record id
|
java.lang.String |
getGridDefRecordId()
Get the grid def record id
|
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
|
int |
getOffsetToHeader()
Get the offset to the grid header (4 byte words)
|
java.lang.String |
getParameterDescription()
Get the parameter description
|
java.lang.String |
getParameterName()
Get the parameter name
|
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.
|
int |
getValidTimeOffset()
Get valid time offset (minutes) of this GridRecord
|
boolean |
hasGribInfo()
Had GRIB info?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReferenceTime, getValidTime
public McIDASGridRecord(int offset, int[] header) throws McIDASException
offset
- offset to grid header in fileheader
- header wordsMcIDASException
- Problem creating the recordpublic 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 int getValidTimeOffset()
public java.lang.String getParameterName()
getParameterName
in interface GridRecord
public java.lang.String getParameterDescription()
getParameterDescription
in interface GridRecord
public int getDecimalScale()
getDecimalScale
in interface GridRecord
public java.lang.String getGridDefRecordId()
getGridDefRecordId
in interface GridRecord
public McGridDefRecord getGridDefRecord()
public int getOffsetToHeader()
public boolean hasGribInfo()
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