ucar.grib
Class GribPDSVariables

java.lang.Object
  extended by ucar.grib.GribPDSVariables
All Implemented Interfaces:
GribPDSVariablesIF

public class GribPDSVariables
extends java.lang.Object
implements GribPDSVariablesIF

Handles the data input from the text and the older binary type of Indexes for the GribGridRecord.


Field Summary
 boolean bmsExists
          _more_
 int category
          _more_
 int center
          _more_
 int decimalScale
          _more_
 int discipline
          _more_
 int forecastTime
          _more_
 int gdsKey
          _more_
 int levelType1
          _more_
 int levelType2
          _more_
 float levelValue1
          _more_
 float levelValue2
          _more_
 float lowerLimit
          _more_
 int numberForecasts
          _more_
 long offset1
          _more_
 long offset2
          _more_
 int paramNumber
          _more_
 int productType
          _more_
 java.util.Date refTime
          _more_
 int subCenter
          _more_
 int table
          _more_
 int type
          Type of ensemble or Probablity forecast
 int typeGenProcess
          _more_
 float upperLimit
          _more_
 
Constructor Summary
GribPDSVariables()
          default constructor, used by GribReadIndex (binary indices)
GribPDSVariables(java.util.Calendar calendar, int productType, int discipline, int category, int param, int typeGenProcess, int levelType1, float levelValue1, int levelType2, float levelValue2, java.util.Date refTime, int foreTime, int gdsKey, long offset1, long offset2, int decimalScale, boolean bmsExists, int center, int subCenter, int table)
          constructor given all parameters native.
 
Method Summary
 int getAnalysisGenProcess()
          analysisGenProcess.
 int getBackGenProcess()
          backGenProcess.
 int getChemicalType()
          ChemicalType.
 int getCoordinates()
          Number of this coordinates.
 int getDecimalScale()
          Get the decimal scale
 int getForecastPercentile()
          ForecastPercentile.
 int getForecastProbability()
          ForecastProbability.
 int getForecastTime()
          forecastTime.
 int getHoursAfter()
          hoursAfter.
 int getLength()
           
 int getMinutesAfter()
          minutesAfter.
 int getNB()
          Number Bands.
 int getNumberForecasts()
          number of forecasts.
 int getObservationProcess()
          ObservationProcess.
 int getParameterCategory()
          parameter Category .
 int getParameterNumber()
          parameter Number.
 byte[] getPDSBytes()
          PDS as byte[]
 int getPerturbation()
          Perturbation number
 int getProductDefinition()
          productDefinition.
 java.util.Date getReferenceTime()
          Get the first reference time of this GridRecord
 int getSection()
          Number of this section .
 int getTimeRangeUnit()
          returns timeRangeUnit .
 int getType()
          Type of Derived Code table 4.7.
 int getTypeFirstFixedSurface()
          Get the type for the first level of this GridRecord
 int getTypeGenProcess()
          type of Generating Process.
 int getTypeSecondFixedSurface()
          Get the type for the second level of this GridRecord
 java.util.Date getValidTime()
          Get the valid time for this grid.
 float getValueFirstFixedSurface()
          Get the first level of this GridRecord
 float getValueLowerLimit()
          ValueLowerLimit
 float getValueSecondFixedSurface()
          Get the second level of this GridRecord
 float getValueUpperLimit()
          ValueUpperLimit
 void setValidTime(java.util.Date t)
          _more_
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

productType

public int productType
_more_


discipline

public int discipline
_more_


category

public int category
_more_


paramNumber

public int paramNumber
_more_


typeGenProcess

public int typeGenProcess
_more_


levelType1

public int levelType1
_more_


levelType2

public int levelType2
_more_


levelValue1

public float levelValue1
_more_


levelValue2

public float levelValue2
_more_


gdsKey

public int gdsKey
_more_


offset1

public long offset1
_more_


offset2

public long offset2
_more_


refTime

public java.util.Date refTime
_more_


forecastTime

public int forecastTime
_more_


decimalScale

public int decimalScale
_more_


bmsExists

public boolean bmsExists
_more_


center

public int center
_more_


subCenter

public int subCenter
_more_


table

public int table
_more_


numberForecasts

public int numberForecasts
_more_


type

public int type
Type of ensemble or Probablity forecast


lowerLimit

public float lowerLimit
_more_


upperLimit

public float upperLimit
_more_

Constructor Detail

GribPDSVariables

public GribPDSVariables()
default constructor, used by GribReadIndex (binary indices)


GribPDSVariables

public GribPDSVariables(java.util.Calendar calendar,
                        int productType,
                        int discipline,
                        int category,
                        int param,
                        int typeGenProcess,
                        int levelType1,
                        float levelValue1,
                        int levelType2,
                        float levelValue2,
                        java.util.Date refTime,
                        int foreTime,
                        int gdsKey,
                        long offset1,
                        long offset2,
                        int decimalScale,
                        boolean bmsExists,
                        int center,
                        int subCenter,
                        int table)
constructor given all parameters native. used to write indices

Parameters:
productType -
discipline -
category -
param -
typeGenProcess -
levelType1 -
levelValue1 -
levelType2 -
levelValue2 -
refTime -
foreTime -
gdsKey -
offset1 -
offset2 -
decimalScale -
bmsExists - either true or false bit-map exists
center -
subCenter -
table -
Method Detail

getPDSBytes

public byte[] getPDSBytes()
PDS as byte[]

Specified by:
getPDSBytes in interface GribPDSVariablesIF
Returns:
PDS bytes

getLength

public final int getLength()
Specified by:
getLength in interface GribPDSVariablesIF

getSection

public final int getSection()
Number of this section .

Specified by:
getSection in interface GribPDSVariablesIF
Returns:
section number

getCoordinates

public final int getCoordinates()
Number of this coordinates.

Specified by:
getCoordinates in interface GribPDSVariablesIF
Returns:
Coordinates number

getProductDefinition

public final int getProductDefinition()
productDefinition.

Specified by:
getProductDefinition in interface GribPDSVariablesIF
Returns:
ProductDefinition

getParameterCategory

public final int getParameterCategory()
parameter Category .

Specified by:
getParameterCategory in interface GribPDSVariablesIF
Returns:
parameterCategory as int

getParameterNumber

public final int getParameterNumber()
parameter Number.

Specified by:
getParameterNumber in interface GribPDSVariablesIF
Returns:
ParameterNumber

getTypeGenProcess

public final int getTypeGenProcess()
type of Generating Process.

Specified by:
getTypeGenProcess in interface GribPDSVariablesIF
Returns:
GenProcess

getChemicalType

public final int getChemicalType()
ChemicalType.

Specified by:
getChemicalType in interface GribPDSVariablesIF
Returns:
ChemicalType

getBackGenProcess

public final int getBackGenProcess()
backGenProcess.

Specified by:
getBackGenProcess in interface GribPDSVariablesIF
Returns:
BackGenProcess

getObservationProcess

public final int getObservationProcess()
ObservationProcess.

Specified by:
getObservationProcess in interface GribPDSVariablesIF
Returns:
ObservationProcess

getNB

public final int getNB()
Number Bands.

Specified by:
getNB in interface GribPDSVariablesIF
Returns:
NB

getAnalysisGenProcess

public final int getAnalysisGenProcess()
analysisGenProcess.

Specified by:
getAnalysisGenProcess in interface GribPDSVariablesIF
Returns:
analysisGenProcess

getHoursAfter

public final int getHoursAfter()
hoursAfter.

Specified by:
getHoursAfter in interface GribPDSVariablesIF
Returns:
HoursAfter

getMinutesAfter

public final int getMinutesAfter()
minutesAfter.

Specified by:
getMinutesAfter in interface GribPDSVariablesIF
Returns:
MinutesAfter

getTimeRangeUnit

public final int getTimeRangeUnit()
returns timeRangeUnit .

Specified by:
getTimeRangeUnit in interface GribPDSVariablesIF
Returns:
TimeRangeUnitName

getForecastTime

public final int getForecastTime()
forecastTime.

Specified by:
getForecastTime in interface GribPDSVariablesIF
Returns:
ForecastTime

getValueFirstFixedSurface

public float getValueFirstFixedSurface()
Get the first level of this GridRecord

Specified by:
getValueFirstFixedSurface in interface GribPDSVariablesIF
Returns:
the first level value

getValueSecondFixedSurface

public float getValueSecondFixedSurface()
Get the second level of this GridRecord

Specified by:
getValueSecondFixedSurface in interface GribPDSVariablesIF
Returns:
the second level value

getTypeFirstFixedSurface

public int getTypeFirstFixedSurface()
Get the type for the first level of this GridRecord

Specified by:
getTypeFirstFixedSurface in interface GribPDSVariablesIF
Returns:
level type

getTypeSecondFixedSurface

public int getTypeSecondFixedSurface()
Get the type for the second level of this GridRecord

Specified by:
getTypeSecondFixedSurface in interface GribPDSVariablesIF
Returns:
level type

getReferenceTime

public java.util.Date getReferenceTime()
Get the first reference time of this GridRecord

Returns:
reference time

getValidTime

public java.util.Date getValidTime()
Get the valid time for this grid.

Returns:
valid time

setValidTime

public void setValidTime(java.util.Date t)
_more_

Parameters:
t - _more_

getDecimalScale

public int getDecimalScale()
Get the decimal scale

Returns:
decimal scale

getType

public final int getType()
Type of Derived Code table 4.7. Type of Ensemble code table 4.6 Type of Probability code table 4.9

Specified by:
getType in interface GribPDSVariablesIF
Returns:
int Type Derived, Ensemble, or Probability

getForecastProbability

public final int getForecastProbability()
ForecastProbability.

Specified by:
getForecastProbability in interface GribPDSVariablesIF
Returns:
int ForecastProbability

getForecastPercentile

public final int getForecastPercentile()
ForecastPercentile.

Specified by:
getForecastPercentile in interface GribPDSVariablesIF
Returns:
int ForecastPercentile

getPerturbation

public final int getPerturbation()
Perturbation number

Specified by:
getPerturbation in interface GribPDSVariablesIF
Returns:
int Perturbation

getNumberForecasts

public final int getNumberForecasts()
number of forecasts.

Specified by:
getNumberForecasts in interface GribPDSVariablesIF
Returns:
int

getValueLowerLimit

public final float getValueLowerLimit()
ValueLowerLimit

Specified by:
getValueLowerLimit in interface GribPDSVariablesIF
Returns:
float ValueLowerLimit

getValueUpperLimit

public final float getValueUpperLimit()
ValueUpperLimit

Specified by:
getValueUpperLimit in interface GribPDSVariablesIF
Returns:
float ValueUpperLimit

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object