public class McIDASGridRecord
extends edu.wisc.ssec.mcidas.GridDirectory
implements ucar.grid.GridRecord
COLS_INDEX, DIRSIZE, FTIME_INDEX, GRID_DESCR_INDEX, GRID_DESCR_LENGTH, LEVEL_SCALE_INDEX, LEVEL_UNITS_INDEX, LEVEL_VALUE_INDEX, NAV_BLOCK_INDEX, NAV_BLOCK_LENGTH, PARAM_NAME_INDEX, PARAM_SCALE_INDEX, PARAM_TYPE_INDEX, PARAM_UNITS_INDEX, REFDATE_INDEX, REFTIME_INDEX, ROWS_INDEX, SECOND_FTIME_INDEX, SECOND_LEVEL_VALUE_INDEX| Constructor and Description |
|---|
McIDASGridRecord(int offset,
int[] header)
Create a grid header from the integer bits
|
| Modifier and Type | Method and Description |
|---|---|
int |
cdmVariableHash() |
java.lang.String |
cdmVariableName(ucar.grid.GridTableLookup lookup,
boolean useLevel,
boolean useStat) |
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() |
int |
getTimeUnit() |
int |
getValidTimeOffset()
Get valid time offset (minutes) of this GridRecord
|
boolean |
hasGribInfo()
Had GRIB info?
|
equals, getColumns, getDirBlock, getDirectoryBlock, getForecastHour, getGridDescription, getLevelUnitName, getLevelValue, getNavBlock, getNavigation, getNavType, getParamName, getParamScale, getParamUnitName, getReferenceTime, getRows, getSecondLevelValue, getSecondTime, getValidTime, toStringpublic McIDASGridRecord(int offset,
int[] header)
throws edu.wisc.ssec.mcidas.McIDASException
offset - offset to grid header in fileheader - header wordsedu.wisc.ssec.mcidas.McIDASException - Problem creating the recordpublic double getLevel1()
getLevel1 in interface ucar.grid.GridRecordpublic double getLevel2()
getLevel2 in interface ucar.grid.GridRecordpublic int getLevelType1()
getLevelType1 in interface ucar.grid.GridRecordpublic int getLevelType2()
getLevelType2 in interface ucar.grid.GridRecordpublic int getValidTimeOffset()
public java.lang.String getParameterName()
getParameterName in interface ucar.grid.GridRecordpublic java.lang.String getParameterDescription()
getParameterDescription in interface ucar.grid.GridRecordpublic int getDecimalScale()
getDecimalScale in interface ucar.grid.GridRecordpublic java.lang.String getGridDefRecordId()
getGridDefRecordId in interface ucar.grid.GridRecordpublic McGridDefRecord getGridDefRecord()
public int getOffsetToHeader()
public boolean hasGribInfo()
public int getTimeUnit()
getTimeUnit in interface ucar.grid.GridRecordpublic java.lang.String getTimeUdunitName()
getTimeUdunitName in interface ucar.grid.GridRecordpublic int cdmVariableHash()
cdmVariableHash in interface ucar.grid.GridRecordpublic java.lang.String cdmVariableName(ucar.grid.GridTableLookup lookup,
boolean useLevel,
boolean useStat)
cdmVariableName in interface ucar.grid.GridRecord