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 StringgetCategoryName(GridRecord gr)gets the CategoryName.StringgetComment()comment for CF conventions.StringgetDisciplineName(GridRecord gr)gets the DisciplineName.DategetFirstBaseTime()gets the BaseTime Forecastime.floatgetFirstMissingValue()gets the MissingValue.StringgetGridName(GridDefRecord gds)gets the grid type.StringgetGridType()Get the grid type for labellingStringgetInstitution()Institution for CF conventionsStringgetLevelDescription(GridRecord gr)gets the LevelDescription.StringgetLevelName(GridRecord gr)gets the LevelName.StringgetLevelUnit(GridRecord gr)gets the LevelUnit.GridParametergetParameter(GridRecord gr)gets parameter table, then grib1 parameter based on number.intgetProjectionType(GridDefRecord gds)gets the ProjectionType.StringgetShapeName(GridDefRecord gds)Get the grid shape nameStringgetSource()gets the Source, Generating Process or Model.StringgetTimeRangeUnitName(int tunit)Get the first time range unit nameStringgetTitle()gets the CF title.booleanisLatLon(GridDefRecord gds)is this a LatLon grid.booleanisLayer(GridRecord gr)Is this a layer?booleanisPositiveUp(GridRecord gr)is this a PositiveUp VerticalCoordinate.booleanisVerticalCoordinate(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:GridTableLookupGet the grid shape name- Specified by:
getShapeNamein interfaceGridTableLookup- Parameters:
gds- Grid definition record- Returns:
- ShapeName.
-
getGridName
public final String getGridName(GridDefRecord gds)
gets the grid type.- Specified by:
getGridNamein 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:
getParameterin interfaceGridTableLookup- Parameters:
gr- GridRecord- Returns:
- Parameter
-
getDisciplineName
public final String getDisciplineName(GridRecord gr)
gets the DisciplineName.- Specified by:
getDisciplineNamein interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- DisciplineName.
-
getCategoryName
public final String getCategoryName(GridRecord gr)
gets the CategoryName.- Specified by:
getCategoryNamein interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- CategoryName.
-
getLevelName
public final String getLevelName(GridRecord gr)
gets the LevelName.- Specified by:
getLevelNamein interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- LevelName.
-
getLevelDescription
public final String getLevelDescription(GridRecord gr)
gets the LevelDescription.- Specified by:
getLevelDescriptionin interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- LevelDescription.
-
getLevelUnit
public final String getLevelUnit(GridRecord gr)
gets the LevelUnit.- Specified by:
getLevelUnitin interfaceGridTableLookup- Parameters:
gr- GridRecord with metadata- Returns:
- LevelUnit.
-
getTimeRangeUnitName
public final String getTimeRangeUnitName(int tunit)
Description copied from interface:GridTableLookupGet the first time range unit name- Specified by:
getTimeRangeUnitNamein interfaceGridTableLookup- Returns:
- the first time range unit name
-
getFirstBaseTime
public final Date getFirstBaseTime()
gets the BaseTime Forecastime.- Specified by:
getFirstBaseTimein interfaceGridTableLookup- Returns:
- BaseTime
-
isLatLon
public final boolean isLatLon(GridDefRecord gds)
is this a LatLon grid.- Specified by:
isLatLonin interfaceGridTableLookup- Parameters:
gds- Grid definition record- Returns:
- is this a LatLon Grid
-
getProjectionType
public final int getProjectionType(GridDefRecord gds)
gets the ProjectionType.- Specified by:
getProjectionTypein 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:
isVerticalCoordinatein 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:
isPositiveUpin interfaceGridTableLookup- Parameters:
gr- GridRecord with metadata- Returns:
- is this positive up level
-
getFirstMissingValue
public final float getFirstMissingValue()
gets the MissingValue.- Specified by:
getFirstMissingValuein interfaceGridTableLookup- Returns:
- MissingValue
-
isLayer
public boolean isLayer(GridRecord gr)
Is this a layer?- Specified by:
isLayerin interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- true if a layer
-
getTitle
public final String getTitle()
gets the CF title.- Specified by:
getTitlein interfaceGridTableLookup- Returns:
- title
-
getInstitution
public String getInstitution()
Institution for CF conventions- Specified by:
getInstitutionin interfaceGridTableLookup- Returns:
- Institution
-
getSource
public final String getSource()
gets the Source, Generating Process or Model.- Specified by:
getSourcein interfaceGridTableLookup- Returns:
- source
-
getComment
public final String getComment()
comment for CF conventions.- Specified by:
getCommentin interfaceGridTableLookup- Returns:
- comment
-
getGridType
public String getGridType()
Get the grid type for labelling- Specified by:
getGridTypein interfaceGridTableLookup- Returns:
- the grid type
-
-