ucar.grib.grib1
Class Grib1GridTableLookup

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

public class Grib1GridTableLookup
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
Grib1GridTableLookup(Grib1Record firstRecord)
          Constructor.
 
Method Summary
 String getCategoryName(GridRecord gr)
          gets the Category Name.
 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.
 int getFirstSubcenterId()
          gets the SubcenterId.
 String getFirstSubcenterName()
          gets the Subcenter Name.
 String getGenProcessName(GridRecord gr)
          gets the Type of Gen Process Name.
 String getGridName(GridDefRecord gds)
          gets the grid name.
 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 gets parameter table, then grib1 parameter based on number.
 int[] getParameterId(GridRecord gr)
           
 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, type and status unknown for Grib1 so use Product definition by TimeRangeUnit
 String getTimeRangeUnitName(int tunit)
          Get the first time range unit name
 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

Grib1GridTableLookup

public Grib1GridTableLookup(Grib1Record firstRecord)
Constructor.

Parameters:
firstRecord - in the Grib file
Method Detail

getGridName

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

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

getShapeName

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

Specified by:
getShapeName in interface GridTableLookup
Parameters:
gds - GridDefRecord
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 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 String getProductDefinitionName(GridRecord gr)
gets the ProductDefinitionName.

Parameters:
gr - GridRecord
Returns:
ProductDefinitionName

getSource

public final 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

getGenProcessName

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

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)
Description copied from interface: GridTableLookup
Get the first time range unit name

Specified by:
getTimeRangeUnitName in interface GridTableLookup
Returns:
the first time range unit name

getFirstCenterName

public final String getFirstCenterName()
gets the CenterName.

Returns:
CenterName

getFirstSubcenterId

public final int getFirstSubcenterId()
gets the SubcenterId.

Returns:
SubcenterId

getFirstSubcenterName

public final String getFirstSubcenterName()
gets the Subcenter Name.

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

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.

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 String getTitle()
gets the CF title.

Specified by:
getTitle in interface GridTableLookup
Returns:
title

getModel

public final String getModel()

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.