Package ucar.nc2.iosp.mcidas
Class McIDASLookup
- java.lang.Object
-
- ucar.nc2.iosp.mcidas.McIDASLookup
-
- All Implemented Interfaces:
GridTableLookup
public final class McIDASLookup extends Object implements GridTableLookup
McIDASLookup get all the information about a McIDAS file.
-
-
Field Summary
-
Fields inherited from interface ucar.nc2.iosp.grid.GridTableLookup
AlbersEqualArea, Curvilinear, GaussianLatLon, LambertAzimuthEqualArea, LambertConformal, Mercator, Orthographic, PolarStereographic, RotatedLatLon, UTM
-
-
Constructor Summary
Constructors Constructor Description McIDASLookup(McIDASGridRecord sample)
Gets a representative grid for this lookup
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCategoryName(GridRecord gr)
gets the CategoryName.String
getComment()
comment for CF conventions.String
getDisciplineName(GridRecord gr)
gets the DisciplineName.Date
getFirstBaseTime()
gets the BaseTime Forecastime.float
getFirstMissingValue()
gets the MissingValue.String
getGridName(GridDefRecord gds)
gets the grid type.String
getGridType()
Get the grid type for labellingString
getInstitution()
Institution for CF conventionsString
getLevelDescription(GridRecord gr)
gets the LevelDescription.String
getLevelName(GridRecord gr)
gets the LevelName.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.String
getShapeName(GridDefRecord gds)
Get the grid shape nameString
getSource()
gets the Source, Generating Process or Model.String
getTimeRangeUnitName(int tunit)
Get the first time range unit nameString
getTitle()
gets the CF title.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.
-
-
-
Constructor Detail
-
McIDASLookup
public McIDASLookup(McIDASGridRecord sample)
Gets a representative grid for this lookup
-
-
Method Detail
-
getShapeName
public String getShapeName(GridDefRecord gds)
Description copied from interface:GridTableLookup
Get the grid shape name- Specified by:
getShapeName
in interfaceGridTableLookup
- Parameters:
gds
- Grid definition record- Returns:
- ShapeName.
-
getGridName
public final String getGridName(GridDefRecord gds)
gets the grid type.- Specified by:
getGridName
in interfaceGridTableLookup
- Parameters:
gds
- Grid definition record- Returns:
- GridName.
-
getParameter
public final GridParameter getParameter(GridRecord gr)
gets parameter table, then grib1 parameter based on number.- Specified by:
getParameter
in interfaceGridTableLookup
- Parameters:
gr
- GridRecord- Returns:
- Parameter
-
getDisciplineName
public final String getDisciplineName(GridRecord gr)
gets the DisciplineName.- Specified by:
getDisciplineName
in interfaceGridTableLookup
- Parameters:
gr
- record to check- Returns:
- DisciplineName.
-
getCategoryName
public final String getCategoryName(GridRecord gr)
gets the CategoryName.- Specified by:
getCategoryName
in interfaceGridTableLookup
- Parameters:
gr
- record to check- Returns:
- CategoryName.
-
getLevelName
public final String getLevelName(GridRecord gr)
gets the LevelName.- Specified by:
getLevelName
in interfaceGridTableLookup
- Parameters:
gr
- record to check- Returns:
- LevelName.
-
getLevelDescription
public final String getLevelDescription(GridRecord gr)
gets the LevelDescription.- Specified by:
getLevelDescription
in interfaceGridTableLookup
- Parameters:
gr
- record to check- Returns:
- LevelDescription.
-
getLevelUnit
public final String getLevelUnit(GridRecord gr)
gets the LevelUnit.- Specified by:
getLevelUnit
in interfaceGridTableLookup
- Parameters:
gr
- GridRecord with metadata- Returns:
- LevelUnit.
-
getTimeRangeUnitName
public final String getTimeRangeUnitName(int tunit)
Description copied from interface:GridTableLookup
Get the first time range unit name- Specified by:
getTimeRangeUnitName
in interfaceGridTableLookup
- Returns:
- the first time range unit name
-
getFirstBaseTime
public final Date getFirstBaseTime()
gets the BaseTime Forecastime.- Specified by:
getFirstBaseTime
in interfaceGridTableLookup
- Returns:
- BaseTime
-
isLatLon
public final boolean isLatLon(GridDefRecord gds)
is this a LatLon grid.- Specified by:
isLatLon
in interfaceGridTableLookup
- Parameters:
gds
- Grid definition record- Returns:
- is this a LatLon Grid
-
getProjectionType
public final int getProjectionType(GridDefRecord gds)
gets the ProjectionType.- Specified by:
getProjectionType
in interfaceGridTableLookup
- Parameters:
gds
- Grid definition record- Returns:
- one of the enumerated types
-
isVerticalCoordinate
public final boolean isVerticalCoordinate(GridRecord gr)
is this a VerticalCoordinate.- Specified by:
isVerticalCoordinate
in interfaceGridTableLookup
- Parameters:
gr
- GridRecord with metadata- Returns:
- is this a VerticalCoordinate
-
isPositiveUp
public final boolean isPositiveUp(GridRecord gr)
is this a PositiveUp VerticalCoordinate.- Specified by:
isPositiveUp
in interfaceGridTableLookup
- Parameters:
gr
- GridRecord with metadata- Returns:
- is this positive up level
-
getFirstMissingValue
public final float getFirstMissingValue()
gets the MissingValue.- Specified by:
getFirstMissingValue
in interfaceGridTableLookup
- Returns:
- MissingValue
-
isLayer
public boolean isLayer(GridRecord gr)
Is this a layer?- Specified by:
isLayer
in interfaceGridTableLookup
- Parameters:
gr
- record to check- Returns:
- true if a layer
-
getTitle
public final String getTitle()
gets the CF title.- Specified by:
getTitle
in interfaceGridTableLookup
- Returns:
- title
-
getInstitution
public String getInstitution()
Institution for CF conventions- Specified by:
getInstitution
in interfaceGridTableLookup
- Returns:
- Institution
-
getSource
public final String getSource()
gets the Source, Generating Process or Model.- Specified by:
getSource
in interfaceGridTableLookup
- Returns:
- source
-
getComment
public final String getComment()
comment for CF conventions.- Specified by:
getComment
in interfaceGridTableLookup
- Returns:
- comment
-
getGridType
public String getGridType()
Get the grid type for labelling- Specified by:
getGridType
in interfaceGridTableLookup
- Returns:
- the grid type
-
-