ucar.nc2.iosp.mcidas
Class McIDASGridRecord

java.lang.Object
  extended by edu.wisc.ssec.mcidas.GridDirectory
      extended by ucar.nc2.iosp.mcidas.McIDASGridRecord
All Implemented Interfaces:
GridRecord

public class McIDASGridRecord
extends edu.wisc.ssec.mcidas.GridDirectory
implements GridRecord

A class to hold McIDAS grid record information

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

Field Summary
 
Fields inherited from class edu.wisc.ssec.mcidas.GridDirectory
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 Summary
McIDASGridRecord(int offset, int[] header)
          Create a grid header from the integer bits
 
Method Summary
 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 getParameterName()
          Get the parameter name
 int getValidTimeOffset()
          Get valid time offset (minutes) of this GridRecord
 boolean hasGribInfo()
          Had GRIB info?
 
Methods inherited from class edu.wisc.ssec.mcidas.GridDirectory
equals, getColumns, getDirBlock, getDirectoryBlock, getForecastHour, getGridDescription, getLevelUnitName, getLevelValue, getNavBlock, getNavigation, getNavType, getParamName, getParamScale, getParamUnitName, getReferenceTime, getRows, getSecondLevelValue, getSecondTime, getValidTime, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.nc2.iosp.grid.GridRecord
getReferenceTime, getValidTime
 

Constructor Detail

McIDASGridRecord

public McIDASGridRecord(int offset,
                        int[] header)
                 throws edu.wisc.ssec.mcidas.McIDASException
Create a grid header from the integer bits

Parameters:
offset - offset to grid header in file
header - header words
Throws:
edu.wisc.ssec.mcidas.McIDASException - Problem creating the record
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

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

getDecimalScale

public int getDecimalScale()
Get the decimal scale

Specified by:
getDecimalScale in interface GridRecord
Returns:
decimal scale

getGridDefRecordId

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

Specified by:
getGridDefRecordId in interface GridRecord
Returns:
parameter name

getGridDefRecord

public McGridDefRecord getGridDefRecord()
Get the grid def record id

Returns:
parameter name

getOffsetToHeader

public int getOffsetToHeader()
Get the offset to the grid header (4 byte words)

Returns:
word offset

hasGribInfo

public boolean hasGribInfo()
Had GRIB info?

Returns:
true if has grib info