ucar.nc2.iosp.mcidas
Class McIDASLookup

java.lang.Object
  extended by ucar.nc2.iosp.mcidas.McIDASLookup
All Implemented Interfaces:
GridTableLookup

public final class McIDASLookup
extends java.lang.Object
implements GridTableLookup

McIDASLookup get all the information about a GEMPAK file.


Field Summary
 
Fields inherited from interface ucar.nc2.iosp.grid.GridTableLookup
AlbersEqualArea, GaussianLatLon, LambertAzimuthEqualArea, LambertConformal, Mercator, Orthographic, PolarStereographic, UTM
 
Constructor Summary
McIDASLookup(McIDASGridRecord sample)
          Gets a representative grid for this lookup
 
Method Summary
 java.lang.String getCategoryName(GridRecord gr)
          gets the CategoryName.
 java.lang.String getDisciplineName(GridRecord gr)
          gets the DisciplineName.
 java.util.Date getFirstBaseTime()
          gets the BaseTime Forecastime.
 float getFirstMissingValue()
          gets the MissingValue.
 java.lang.String getFirstTimeRangeUnitName()
          gets the TimeRangeUnitName.
 java.lang.String getGridName(GridDefRecord gds)
          gets the grid type.
 java.lang.String getGridType()
          Get the grid type for labelling
 java.lang.String getLevelDescription(GridRecord gr)
          gets the LevelDescription.
 java.lang.String getLevelName(GridRecord gr)
          gets the LevelName.
 java.lang.String getLevelUnit(GridRecord gr)
          gets the LevelUnit.
 GridParameter getParameter(GridRecord gr)
          gets parameter table, then grib1 parameter based on number.
 int getProjectionType(GridDefRecord gds)
          gets the ProjectionType.
 java.lang.String getShapeName(GridDefRecord gds)
          .
 boolean isLatLon(GridDefRecord gds)
          is this a LatLon grid.
 boolean isLayer(GridRecord gr)
          Is this a layer?
 boolean isPositiveUp(GridRecord gr)
          is this a PositiveUp VerticalCoordinate.
 boolean isVerticalCoordinate(GridRecord gr)
          is this a VerticalCoordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

McIDASLookup

public McIDASLookup(McIDASGridRecord sample)
Gets a representative grid for this lookup

Parameters:
sample -
Method Detail

getShapeName

public java.lang.String getShapeName(GridDefRecord gds)
.

Specified by:
getShapeName in interface GridTableLookup
Parameters:
gds -
Returns:
ShapeName.

getGridName

public final java.lang.String getGridName(GridDefRecord gds)
gets the grid type.

Specified by:
getGridName in interface GridTableLookup
Parameters:
gds -
Returns:
GridName

getParameter

public final GridParameter getParameter(GridRecord gr)
gets parameter table, then grib1 parameter based on number.

Specified by:
getParameter in interface GridTableLookup
Parameters:
gr - GridRecord
Returns:
Parameter

getDisciplineName

public final java.lang.String getDisciplineName(GridRecord gr)
gets the DisciplineName.

Specified by:
getDisciplineName in interface GridTableLookup
Parameters:
gr -
Returns:
DisciplineName

getCategoryName

public final java.lang.String getCategoryName(GridRecord gr)
gets the CategoryName.

Specified by:
getCategoryName in interface GridTableLookup
Parameters:
gr -
Returns:
CategoryName

getLevelName

public final java.lang.String getLevelName(GridRecord gr)
gets the LevelName.

Specified by:
getLevelName in interface GridTableLookup
Parameters:
gr -
Returns:
LevelName

getLevelDescription

public final java.lang.String getLevelDescription(GridRecord gr)
gets the LevelDescription.

Specified by:
getLevelDescription in interface GridTableLookup
Parameters:
gr -
Returns:
LevelDescription

getLevelUnit

public final java.lang.String getLevelUnit(GridRecord gr)
gets the LevelUnit.

Specified by:
getLevelUnit in interface GridTableLookup
Parameters:
gr -
Returns:
LevelUnit

getFirstTimeRangeUnitName

public final java.lang.String getFirstTimeRangeUnitName()
gets the TimeRangeUnitName.

Specified by:
getFirstTimeRangeUnitName in interface GridTableLookup
Returns:
TimeRangeUnitName

getFirstBaseTime

public final java.util.Date getFirstBaseTime()
gets the BaseTime Forecastime.

Specified by:
getFirstBaseTime in interface GridTableLookup
Returns:
BaseTime

isLatLon

public final boolean isLatLon(GridDefRecord gds)
is this a LatLon grid.

Specified by:
isLatLon in interface GridTableLookup
Parameters:
gds -
Returns:
isLatLon

getProjectionType

public final int getProjectionType(GridDefRecord gds)
gets the ProjectionType.

Specified by:
getProjectionType in interface GridTableLookup
Parameters:
gds -
Returns:
ProjectionType

isVerticalCoordinate

public final boolean isVerticalCoordinate(GridRecord gr)
is this a VerticalCoordinate.

Specified by:
isVerticalCoordinate in interface GridTableLookup
Parameters:
gr -
Returns:
isVerticalCoordinate

isPositiveUp

public final boolean isPositiveUp(GridRecord gr)
is this a PositiveUp VerticalCoordinate.

Specified by:
isPositiveUp in interface GridTableLookup
Parameters:
gr -
Returns:
isPositiveUp

getFirstMissingValue

public final float getFirstMissingValue()
gets the MissingValue.

Specified by:
getFirstMissingValue in interface GridTableLookup
Returns:
MissingValue

isLayer

public boolean isLayer(GridRecord gr)
Is this a layer?

Specified by:
isLayer in interface GridTableLookup
Parameters:
gr - record to check
Returns:
true if a layer

getGridType

public java.lang.String getGridType()
Get the grid type for labelling

Specified by:
getGridType in interface GridTableLookup
Returns:
the grid type