ucar.grib.grib2
Class Grib2GridTableLookup

java.lang.Object
  extended by ucar.grib.grib2.Grib2GridTableLookup
All Implemented Interfaces:
GridTableLookup

public final class Grib2GridTableLookup
extends Object
implements GridTableLookup


Field Summary
 
Fields inherited from interface ucar.grid.GridTableLookup
AlbersEqualArea, Curvilinear, GaussianLatLon, LambertAzimuthEqualArea, LambertConformal, Mercator, Orthographic, PolarStereographic, RotatedLatLon, UTM
 
Constructor Summary
Grib2GridTableLookup(Grib2Record firstRecord)
          Constructor.
 
Method Summary
 String getCategoryName(GridRecord gr)
          gets the CategoryName.
 String getComment()
          comment for CF conventions.
 String getDisciplineName(GridRecord gr)
          gets the DisciplineName.
 Date getFirstBaseTime()
          Get the first base time
 String getFirstCenterName()
          gets the CenterName.
 float getFirstMissingValue()
          gets the MissingValue.
 String getFirstProductStatusName()
          gets the ProductStatusName.
 String getFirstProductTypeName()
          gets the ProductTypeName.
 String getFirstSignificanceOfRTName()
          gets the SignificanceOfRTName.
 String getFirstSubcenterName()
          gets the Subcenter Name, dependant on center.
 int getGenProcessType(GridRecord gr)
          gets the Type of Gen Process.
 String getGenProcessTypeName(GridRecord gr)
          gets the Type of Gen Process Name.
 String getGridName(GridDefRecord gds)
          gets the grid type.
 String getGridType()
          gets the grid type.
 String getInstitution()
          Institution for CF conventions
 String getLevelDescription(GridRecord gr)
          gets the LevelDescription.
 String getLevelName(GridRecord gr)
          gets the LevelName.
 String getLevelUnit(GridRecord gr)
          gets the LevelUnit.
 String getModel()
           
 GridParameter getParameter(GridRecord gr)
          Get the grid parameter that corresponds to this record Check for local parameters, default is NCEP so check it first.
 int[] getParameterId(GridRecord gr)
           
 int getProductDefinition(GridRecord gr)
          gets the ProductDefinition.
 String getProductDefinitionName(GridRecord gr)
          gets the ProductDefinitionName.
 int getProjectionType(GridDefRecord gds)
          gets the ProjectionType.
 String getShapeName(GridDefRecord gds)
          gets the ShapeName.
 String getSource()
          gets the Source, Generating Process or Model.
 String getTimeRangeUnitName(int tunit)
          gets the TimeRangeUnitName.
 String getTitle()
          gets the CF title.
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2GridTableLookup

public Grib2GridTableLookup(Grib2Record firstRecord)
Constructor.

Parameters:
firstRecord - in the Grib file
Method Detail

getGridName

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

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

getShapeName

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

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

getDisciplineName

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

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

getCategoryName

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

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

getParameter

public GridParameter getParameter(GridRecord gr)
Get the grid parameter that corresponds to this record Check for local parameters, default is NCEP so check it first. The NCEP local parameters are included in the main table with the WMO ones.

Specified by:
getParameter in interface GridTableLookup
Parameters:
gr - record to check
Returns:
Parameter.

getParameterId

public int[] getParameterId(GridRecord gr)
Parameters:
gr - GridRecord
Returns:
int[] representing the parameter discipline, category, and parmeter number

getProductDefinitionName

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

Parameters:
gr - GridRecord
Returns:
ProductDefinitionName

getProductDefinition

public final int getProductDefinition(GridRecord gr)
gets the ProductDefinition.

Parameters:
gr - GridRecord
Returns:
ProductDefinition

getSource

public final String getSource()
gets the Source, Generating Process or Model.

Specified by:
getSource in interface GridTableLookup
Returns:
source

getGenProcessTypeName

public final String getGenProcessTypeName(GridRecord gr)
gets the Type of Gen Process Name.

Parameters:
gr - GridRecord
Returns:
typeGenProcessName

getGenProcessType

public final int getGenProcessType(GridRecord gr)
gets the Type of Gen Process.

Parameters:
gr - GridRecord
Returns:
typeGenProcessName

getLevelName

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

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

getLevelDescription

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

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

getLevelUnit

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

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

getFirstBaseTime

public final Date getFirstBaseTime()
Get the first base time

Specified by:
getFirstBaseTime in interface GridTableLookup
Returns:
FirstBaseTime.

getTimeRangeUnitName

public final String getTimeRangeUnitName(int tunit)
gets the TimeRangeUnitName.

Specified by:
getTimeRangeUnitName in interface GridTableLookup
Returns:
TimeRangeUnitName

getFirstCenterName

public final String getFirstCenterName()
gets the CenterName.

Returns:
CenterName

getFirstSubcenterName

public final String getFirstSubcenterName()
gets the Subcenter Name, dependant on center.

Returns:
Subcenter Name

getInstitution

public String getInstitution()
Institution for CF conventions

Specified by:
getInstitution in interface GridTableLookup
Returns:
Institution

getFirstProductStatusName

public final String getFirstProductStatusName()
gets the ProductStatusName.

Returns:
ProductStatusName

getComment

public final String getComment()
comment for CF conventions.

Specified by:
getComment in interface GridTableLookup
Returns:
comment

getFirstProductTypeName

public final String getFirstProductTypeName()
gets the ProductTypeName.

Returns:
ProductTypeName

getTitle

public final String getTitle()
gets the CF title.

Specified by:
getTitle in interface GridTableLookup
Returns:
title

getModel

public final String getModel()

getFirstSignificanceOfRTName

public final 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. Grib Package is written to use Float.NaN.

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 - record to check
Returns:
true if a layer

getGridType

public final String getGridType()
gets the grid type.

Specified by:
getGridType in interface GridTableLookup
Returns:
GridType


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.