ucar.grib.grib1
Class Grib1GridTableLookup

java.lang.Object
  extended by ucar.grib.grib1.Grib1GridTableLookup
All Implemented Interfaces:
GridTableLookup

public class Grib1GridTableLookup
extends java.lang.Object
implements GridTableLookup


Field Summary
 
Fields inherited from interface ucar.grid.GridTableLookup
AlbersEqualArea, Curvilinear, GaussianLatLon, LambertAzimuthEqualArea, LambertConformal, Mercator, Orthographic, PolarStereographic, RotatedLatLon, UTM
 
Constructor Summary
Grib1GridTableLookup(Grib1Record firstRecord)
          Constructor.
 
Method Summary
 java.lang.String getCategoryName(GridRecord gr)
          gets the Category Name.
 java.lang.String getComment()
          comment for CF conventions.
 java.lang.String getDisciplineName(GridRecord gr)
          gets the DisciplineName.
 java.util.Date getFirstBaseTime()
          Get the first base time
 java.lang.String getFirstCenterName()
          gets the CenterName.
 float getFirstMissingValue()
          gets the MissingValue.
 java.lang.String getFirstProductStatusName()
          gets the ProductStatusName.
 java.lang.String getFirstProductTypeName()
          gets the ProductTypeName.
 java.lang.String getFirstSignificanceOfRTName()
          gets the SignificanceOfRTName.
 int getFirstSubcenterId()
          gets the SubcenterId.
 java.lang.String getFirstSubcenterName()
          gets the Subcenter Name.
 java.lang.String getFirstTimeRangeUnitName()
          gets the TimeRangeUnitName.
 java.lang.String getGridName(GridDefRecord gds)
          gets the grid name.
 java.lang.String getGridType()
          gets the grid type.
 java.lang.String getInstitution()
          Institution for CF conventions
 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)
          Get the grid parameter that corresponds to this record gets parameter table, then grib1 parameter based on number.
 int[] getParameterId(GridRecord gr)
           
 java.lang.String getProductDefinitionName(GridRecord gr)
          gets the ProductDefinitionName.
 int getProjectionType(GridDefRecord gds)
          gets the ProjectionType.
 java.lang.String getShapeName(GridDefRecord gds)
          gets the ShapeName.
 java.lang.String getSource()
          gets the Source, type and status unknown for Grib1 so use Product definition by TimeRangeUnit
 java.lang.String getTitle()
          gets the CF title.
 java.lang.String getTypeGenProcessName(GridRecord gr)
          gets the Type of Gen Process Name.
 boolean isLatLon(GridDefRecord gds)
          is this a LatLon grid.
 boolean isLayer(GridRecord gr)
          Check to see if this grid is a layer variable
 boolean isPositiveUp(GridRecord gr)
          is this a PositiveUp VerticalCoordinate.
 boolean isVerticalCoordinate(GridRecord gr)
          is this a VerticalCoordinate.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1GridTableLookup

public Grib1GridTableLookup(Grib1Record firstRecord)
Constructor.

Parameters:
firstRecord - in the Grib file
Method Detail

getGridName

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

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

getShapeName

public final java.lang.String getShapeName(GridDefRecord gds)
gets the ShapeName.

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

getDisciplineName

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

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

getCategoryName

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

Specified by:
getCategoryName in interface GridTableLookup
Parameters:
gr - GridRecord
Returns:
Category Name

getParameter

public final GridParameter getParameter(GridRecord gr)
Get the grid parameter that corresponds to this record gets parameter table, then grib1 parameter based on number.

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

getParameterId

public int[] getParameterId(GridRecord gr)
Parameters:
gr - GridRecord
Returns:
result

getProductDefinitionName

public final java.lang.String getProductDefinitionName(GridRecord gr)
gets the ProductDefinitionName.

Parameters:
gr - GridRecord
Returns:
ProductDefinitionName

getSource

public final java.lang.String getSource()
gets the Source, type and status unknown for Grib1 so use Product definition by TimeRangeUnit

Specified by:
getSource in interface GridTableLookup
Returns:
source

getTypeGenProcessName

public final java.lang.String getTypeGenProcessName(GridRecord gr)
gets the Type of Gen Process Name.

Parameters:
gr - GridRecord
Returns:
typeGenProcessName

getLevelName

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

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

getLevelDescription

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

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

getLevelUnit

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

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

getFirstBaseTime

public final java.util.Date getFirstBaseTime()
Get the first base time

Specified by:
getFirstBaseTime in interface GridTableLookup
Returns:
FirstBaseTime.

getFirstTimeRangeUnitName

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

Specified by:
getFirstTimeRangeUnitName in interface GridTableLookup
Returns:
TimeRangeUnitName

getFirstCenterName

public final java.lang.String getFirstCenterName()
gets the CenterName.

Returns:
CenterName

getFirstSubcenterId

public final int getFirstSubcenterId()
gets the SubcenterId.

Returns:
SubcenterId

getFirstSubcenterName

public final java.lang.String getFirstSubcenterName()
gets the Subcenter Name.

Returns:
Subcenter Name

getInstitution

public java.lang.String getInstitution()
Institution for CF conventions

Specified by:
getInstitution in interface GridTableLookup
Returns:
Institution

getFirstProductStatusName

public final java.lang.String getFirstProductStatusName()
gets the ProductStatusName.

Returns:
ProductStatusName

getComment

public final java.lang.String getComment()
comment for CF conventions.

Specified by:
getComment in interface GridTableLookup
Returns:
comment

getFirstProductTypeName

public final java.lang.String getFirstProductTypeName()
gets the ProductTypeName.

Returns:
ProductTypeName

getFirstSignificanceOfRTName

public final java.lang.String getFirstSignificanceOfRTName()
gets the SignificanceOfRTName.

Returns:
SignificanceOfRTName

isLatLon

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

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

getProjectionType

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

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

isVerticalCoordinate

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

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

isPositiveUp

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

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

getFirstMissingValue

public final float getFirstMissingValue()
gets the MissingValue.

Specified by:
getFirstMissingValue in interface GridTableLookup
Returns:
MissingValue

isLayer

public final boolean isLayer(GridRecord gr)
Check to see if this grid is a layer variable

Specified by:
isLayer in interface GridTableLookup
Parameters:
gr - GridRecord
Returns:
true if a layer

getTitle

public final java.lang.String getTitle()
gets the CF title.

Specified by:
getTitle in interface GridTableLookup
Returns:
title

getGridType

public final java.lang.String getGridType()
gets the grid type.

Specified by:
getGridType in interface GridTableLookup
Returns:
GridType