ucar.grib.grib1
Class Grib1ProductDefinitionSection

java.lang.Object
  extended by ucar.grib.grib1.Grib1ProductDefinitionSection

public final class Grib1ProductDefinitionSection
extends Object

A class representing the product definition section (PDS) of a GRIB record.


Constructor Summary
Grib1ProductDefinitionSection(RandomAccessFile raf)
          Constructs a Grib1ProductDefinitionSection object from a raf.
 
Method Summary
 boolean bmsExists()
          Deprecated.  
 boolean gdsExists()
          Deprecated.  
 Date getBaseTime()
          Deprecated.  
 String getCenter_idName()
          Deprecated.  
 int getCenter()
          Deprecated.  
 int getDecimalScale()
          Deprecated.  
 String getDescription()
          Deprecated.  
 int getForecastTime()
          Deprecated.  
 int getGrid_Id()
          Deprecated.  
 int getGrid_ID()
          Deprecated.  
 int getLength()
          Deprecated.  
 boolean getLengthErr()
          Deprecated.  
 String getLevelName()
          Deprecated.  
 int getLevelType()
          Deprecated.  
 float getLevelValue1()
          Deprecated.  
 float getLevelValue2()
          Deprecated.  
 int getP1()
          Deprecated.  
 int getP2()
          Deprecated.  
 GridParameter getParameter()
          Deprecated.  
 int getParameterNumber()
          Deprecated.  
 Grib1Pds getPdsVars()
          PDS as Grib1PDSVariables
 int getProductDefinition()
          Deprecated.  
static String getProductDefinitionName(int type)
          Deprecated.  
 long getRefTime()
          Deprecated.  
 String getSubCenter_idName(int center)
          Deprecated.  
 int getSubCenter()
          Deprecated.  
 int getTableVersion()
          Deprecated.  
 int getTimeRange()
          Deprecated.  
 String getTimeRangeString()
          Deprecated.  
 String getTimeUnit()
          Deprecated.  
 String getType()
          Deprecated.  
 int getTypeGenProcess()
          Deprecated.  
static String getTypeGenProcessName(int typeGenProcess)
          Deprecated.  
static String getTypeGenProcessName(String typeGenProcess)
          Deprecated.  
 String getUnit()
          Deprecated.  
static void main(String[] args)
          main.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1ProductDefinitionSection

public Grib1ProductDefinitionSection(RandomAccessFile raf)
                              throws NotSupportedException,
                                     IOException
Constructs a Grib1ProductDefinitionSection object from a raf.

Parameters:
raf - with PDS content
Throws:
IOException - if raf can not be opened etc.
NotSupportedException - if raf contains no valid GRIB file
Method Detail

gdsExists

public final boolean gdsExists()
Deprecated. 

Check if GDS exists.

Returns:
true, if GDS exists

bmsExists

public final boolean bmsExists()
Deprecated. 

Check if BMS exists.

Returns:
true, if BMS exists

getCenter

public final int getCenter()
Deprecated. 

Center as int.

Returns:
center_id

getTypeGenProcess

public final int getTypeGenProcess()
Deprecated. 

Process Id as int.

Returns:
typeGenProcess

getTypeGenProcessName

public static final String getTypeGenProcessName(String typeGenProcess)
Deprecated. 

Generating Type Process Name. ON388 - TABLE A. Generating Process or Model. from Originating Center 7 (USNWS NCEP). GRIB1 - PDS Octet 6. Revised 12/15/2005.

Parameters:
typeGenProcess -
Returns:
typeGenProcessName

getTypeGenProcessName

public static final String getTypeGenProcessName(int typeGenProcess)
Deprecated. 

Parameters:
typeGenProcess -
Returns:

getGrid_Id

public final int getGrid_Id()
Deprecated. 

Grid ID as int.

Returns:
grid_id

getCenter_idName

public final String getCenter_idName()
Deprecated. 

Name of Identification of center .

Returns:
Center Name as String

getSubCenter

public final int getSubCenter()
Deprecated. 

SubCenter as int.

Returns:
subCenter

getSubCenter_idName

public final String getSubCenter_idName(int center)
Deprecated. 

SubCenter as String.

Parameters:
center -
Returns:
subCenter

getTableVersion

public final int getTableVersion()
Deprecated. 

gets the Table version as a int.

Returns:
table_version

getDecimalScale

public final int getDecimalScale()
Deprecated. 

Get the exponent of the decimal scale used for all data values.

Returns:
exponent of decimal scale

getParameterNumber

public final int getParameterNumber()
Deprecated. 

Get the number of the parameter.

Returns:
index number of parameter in table

getType

public final String getType()
Deprecated. 

Get the type of the parameter.

Returns:
type of parameter

getDescription

public final String getDescription()
Deprecated. 

Get a descritpion of the parameter.

Returns:
descritpion of parameter

getUnit

public final String getUnit()
Deprecated. 

Get the name of the unit of the parameter.

Returns:
name of the unit of the parameter

getLevelName

public final String getLevelName()
Deprecated. 

Get the name for the type of level for forecast/analysis.

Returns:
name of level (height or pressure)

getLevelType

public final int getLevelType()
Deprecated. 

Get the numeric value for this level.

Returns:
name of level (height or pressure)

getLevelValue1

public final float getLevelValue1()
Deprecated. 

Get the numeric value for this level.

Returns:
name of level (height or pressure)

getLevelValue2

public final float getLevelValue2()
Deprecated. 

Get value 2 (if it exists) for this level.

Returns:
name of level (height or pressure)

getBaseTime

public final Date getBaseTime()
Deprecated. 

Get the base (analysis) time of the forecast.

Returns:
date and time

getRefTime

public final long getRefTime()
Deprecated. 

gets reference time as a long millis.

Returns:
refTime

getForecastTime

public final int getForecastTime()
Deprecated. 

Get the time of the forecast.

Returns:
date and time

getP1

public final int getP1()
Deprecated. 

P1.

Returns:
p1

getP2

public final int getP2()
Deprecated. 

P2.

Returns:
p2

getParameter

public final GridParameter getParameter()
Deprecated. 

Get the parameter for this pds.

Returns:
parameter

getTimeUnit

public final String getTimeUnit()
Deprecated. 

gets the time unit ie hour.

Returns:
tUnit

getProductDefinition

public final int getProductDefinition()
Deprecated. 

ProductDefinition as a int.

Returns:
timeRangeValue

getProductDefinitionName

public static String getProductDefinitionName(int type)
Deprecated. 

ProductDefinition name.

Parameters:
type -
Returns:
name of ProductDefinition

getGrid_ID

public final int getGrid_ID()
Deprecated. 

grid_id as int.

Returns:
grid_id

getTimeRange

public final int getTimeRange()
Deprecated. 

TimeRange as int.

Returns:
timeRangeValue

getTimeRangeString

public final String getTimeRangeString()
Deprecated. 

TimeRange as String.

Returns:
timeRange

getLengthErr

public final boolean getLengthErr()
Deprecated. 

PDS length did not correspond with read .

Returns:
lengthErr

getLength

public int getLength()
Deprecated. 

length of PDS

Returns:
int length

getPdsVars

public Grib1Pds getPdsVars()
PDS as Grib1PDSVariables

Returns:
Grib1PDSVariables PDS vars

main

public static void main(String[] args)
                 throws IOException,
                        NoValidGribException
main.

Parameters:
args - Grib name and PDS offset in Grib
Throws:
IOException - on io error
NoValidGribException


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