net.sourceforge.jgrib.tables
Class GribPDSParamTable

Object
  extended by GribPDSParamTable

public final class GribPDSParamTable
extends Object

A class containing static methods which deliver descriptions and names of parameters, levels and units for byte codes from GRIB records.

Author:
Simone Giannecchini, GeoSolutions S.A.S., Alessio Fabiani, GeoSolutions S.A.S.

Field Summary
protected  int center_id
          Identification of center e.g. 88 for Oslo.
protected  String filename
          Stores the name of the file containing this table - not opened unless required for lookup.
protected  GribPDSParameter[] parameters
          Parameters - stores array of GribPDSParameter classes
protected  int subcenter_id
          Identification of center defined sub-center - not fully implemented yet.
protected  int table_number
          Identification of parameter table version number
protected  URL url
          URL store corresponding url of filename containint this table.
 
Method Summary
 int getCenter_id()
           
 GribPDSParameter getParameter(int id)
          Get the parameter with id id.
 String getParameterDescription(int id)
          Get a description for the parameter with id id.
static GribPDSParamTable getParameterTable(int center, int subcenter, int number)
          Looks for the parameter table which matches the center, subcenter and table version from the tables array.
 String getParameterTag(int id)
          Get the tag/name of the parameter with id id.
 String getParameterUnit(int id)
          Get a description for the unit with id id.
 int getSubcenter_id()
           
 int getVersionNumber()
          getVersionNumber
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

center_id

protected int center_id
Identification of center e.g. 88 for Oslo.


subcenter_id

protected int subcenter_id
Identification of center defined sub-center - not fully implemented yet.


table_number

protected int table_number
Identification of parameter table version number


filename

protected String filename
Stores the name of the file containing this table - not opened unless required for lookup.


url

protected URL url
URL store corresponding url of filename containint this table. URL store corresponding url of filename containint this table. Opened if required for lookup.


parameters

protected GribPDSParameter[] parameters
Parameters - stores array of GribPDSParameter classes

Method Detail

getParameterTable

public static GribPDSParamTable getParameterTable(int center,
                                                  int subcenter,
                                                  int number)
Looks for the parameter table which matches the center, subcenter and table version from the tables array. If this is the first time asking for this table, then the parameters for this table have not been read in yet, so this is done as well.

Parameters:
center - - integer from PDS octet 5, representing Center.
subcenter - - integer from PDS octet 26, representing Subcenter
number - - integer from PDS octet 4, representing Parameter Table Version
Returns:
GribPDSParamTable matching center, subcenter, and number

getParameter

public GribPDSParameter getParameter(int id)
Get the parameter with id id.

Parameters:
id - DOCUMENT ME!
Returns:
description of the unit for the parameter

getParameterTag

public String getParameterTag(int id)
Get the tag/name of the parameter with id id.

Parameters:
id - DOCUMENT ME!
Returns:
tag/name of the parameter

getParameterDescription

public String getParameterDescription(int id)
Get a description for the parameter with id id.

Parameters:
id - DOCUMENT ME!
Returns:
description for the parameter

getParameterUnit

public String getParameterUnit(int id)
Get a description for the unit with id id.

Parameters:
id - DOCUMENT ME!
Returns:
description of the unit for the parameter

toString

public String toString()
Overrides:
toString in class Object

getVersionNumber

public int getVersionNumber()
getVersionNumber

Returns:
DOCUMENT ME!

getCenter_id

public int getCenter_id()

getSubcenter_id

public int getSubcenter_id()


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.