Package ucar.nc2.iosp.gempak
Class GempakLookup
- java.lang.Object
-
- ucar.nc2.iosp.gempak.GempakLookup
-
- All Implemented Interfaces:
GridTableLookup
public final class GempakLookup extends Object implements GridTableLookup
GempakLookup get all the information about a GEMPAK 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 GempakLookup(GempakGridRecord sample)Gets a representative grid for this lookup
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategoryName(GridRecord gr)Get the grid category nameStringgetComment()comment for CF conventions.StringgetDisciplineName(GridRecord gr)Get the grid discipline nameDategetFirstBaseTime()gets the BaseTime Forecastime.floatgetFirstMissingValue()gets the MissingValue.StringgetGridName(GridDefRecord gds)Get the grid nameStringgetGridType()Get the grid type for labellingStringgetInstitution()Institution for CF conventionsStringgetLevelDescription(GridRecord gr)Get the level descriptionStringgetLevelName(GridRecord gr)Get the level nameStringgetLevelUnit(GridRecord gr)Get the level unitGridParametergetParameter(GridRecord gr)gets parameter table, then grib1 parameter based on number.intgetProjectionType(GridDefRecord gds)Get the projection typeStringgetShapeName(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)If vertical level should be made into a coordinate; dont do for surface, or levels without a meaningful coordinate value
-
-
-
Constructor Detail
-
GempakLookup
public GempakLookup(GempakGridRecord 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)
Description copied from interface:GridTableLookupGet the grid name- 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)
Description copied from interface:GridTableLookupGet the grid discipline name- Specified by:
getDisciplineNamein interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- DisciplineName.
-
getCategoryName
public final String getCategoryName(GridRecord gr)
Description copied from interface:GridTableLookupGet the grid category name- Specified by:
getCategoryNamein interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- CategoryName.
-
getLevelName
public final String getLevelName(GridRecord gr)
Description copied from interface:GridTableLookupGet the level name- Specified by:
getLevelNamein interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- LevelName.
-
getLevelDescription
public final String getLevelDescription(GridRecord gr)
Description copied from interface:GridTableLookupGet the level description- Specified by:
getLevelDescriptionin interfaceGridTableLookup- Parameters:
gr- record to check- Returns:
- LevelDescription.
-
getLevelUnit
public final String getLevelUnit(GridRecord gr)
Description copied from interface:GridTableLookupGet the level unit- 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)
Description copied from interface:GridTableLookupGet the projection type- Specified by:
getProjectionTypein interfaceGridTableLookup- Parameters:
gds- Grid definition record- Returns:
- one of the enumerated types
-
isVerticalCoordinate
public final boolean isVerticalCoordinate(GridRecord gr)
Description copied from interface:GridTableLookupIf vertical level should be made into a coordinate; dont do for surface, or levels without a meaningful coordinate value- 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
-
-