@Immutable public abstract class Grib2Pds extends GribPds
| Modifier and Type | Class and Description |
|---|---|
static interface |
Grib2Pds.PdsEnsemble |
static interface |
Grib2Pds.PdsEnsembleDerived |
static interface |
Grib2Pds.PdsInterval |
static interface |
Grib2Pds.PdsPercentile |
static interface |
Grib2Pds.PdsProbability |
static class |
Grib2Pds.SatelliteBand |
static class |
Grib2Pds.TimeInterval |
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
intv |
protected long |
refTime |
protected int |
template |
protected long |
validTime |
| Modifier | Constructor and Description |
|---|---|
protected |
Grib2Pds(byte[] input,
long refTime,
Calendar cal)
Constructs a Grib2PDSVariables object from a byte[].
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
_getForecastTime() |
static Grib2Pds |
factory(byte[] input,
long refTime,
Calendar cal)
Factory for Grib2Pds
|
Date |
getForecastDate()
Forecast time as a Date
|
int |
getForecastTime()
Forecast time in units defined by octet 18 (getTimeUnit())
|
int[] |
getForecastTimeInterval()
Time Interval for accumulation type variables.
|
int[] |
getForecastTimeInterval(int wantUnit) |
int |
getGenProcessId()
Forecast/Analysis generating process identifier (defined by originating centre).
|
int |
getGenProcessType()
Type of Generating Process (Code Table 4.3)
|
long |
getIntervalTimeEnd()
Grib-2 encodes an "end of overall time interval" .
|
int |
getLength() |
int |
getNumberCoordinates()
Number of coordinate values at end of template.
|
int |
getNumberEnsembleForecasts() |
int |
getParameterCategory()
Parameter Category
|
int |
getParameterNumber()
Parameter Number
|
int |
getPercentileValue() |
int |
getPerturbationNumber() |
int |
getPerturbationType() |
double |
getProbabilityLowerLimit() |
int |
getProbabilityType() |
double |
getProbabilityUpperLimit() |
int |
getProductDefinitionTemplate()
product Definition template, Table 4.0
|
long |
getReferenceTime()
Reference time as a long millis.
|
int |
getSection()
Number of this section, should be 4.
|
int |
getStatisticalProcessType()
Get Grib-2 Interval Statistic Type code, only valid if isInterval()
|
String |
getUseGenProcessType() |
boolean |
isEnsemble() |
boolean |
isEnsembleDerived() |
boolean |
isInterval()
Is this a time interval.
|
boolean |
isPercentile() |
boolean |
isProbability() |
static long |
makeDate(long refTime,
int timeUnit,
int forecastTime,
Calendar cal) |
static int |
makeForecastTime(long refTime,
long foreDate,
int timeUnit) |
void |
show(Formatter f) |
factory, getLevelType1, getLevelType2, getLevelValue1, getLevelValue2, getOctet, getPDSBytes, getReferenceDate, getTimeUnitprotected final int template
protected final long refTime
protected long validTime
protected int[] intv
protected Grib2Pds(byte[] input,
long refTime,
Calendar cal)
throws IOException
input - PDSrefTime - reference time in msecsIOException - if raf contains no valid GRIB filepublic static Grib2Pds factory(byte[] input, long refTime, Calendar cal) throws IOException
input - raw bytesrefTime - reference time in msecscal - helper objectIOException - on read errorpublic static long makeDate(long refTime,
int timeUnit,
int forecastTime,
Calendar cal)
public static int makeForecastTime(long refTime,
long foreDate,
int timeUnit)
public long getReferenceTime()
GribPdsgetReferenceTime in class GribPdspublic final int getLength()
public final int getSection()
public final int getNumberCoordinates()
public final int getProductDefinitionTemplate()
public final int getParameterCategory()
public final int getParameterNumber()
getParameterNumber in class GribPdspublic int getGenProcessType()
public String getUseGenProcessType()
public Date getForecastDate()
GribPdsgetForecastDate in class GribPdspublic int getGenProcessId()
getGenProcessId in class GribPdspublic boolean isInterval()
GribPdsisInterval in class GribPdspublic int getStatisticalProcessType()
GribPdsgetStatisticalProcessType in class GribPdspublic long getIntervalTimeEnd()
GribPdsgetIntervalTimeEnd in class GribPdspublic int getForecastTime()
getForecastTime in class GribPdspublic int[] getForecastTimeInterval()
getForecastTimeInterval in class GribPdspublic int[] getForecastTimeInterval(int wantUnit)
getForecastTimeInterval in class GribPdsprotected int _getForecastTime()
public boolean isEnsemble()
isEnsemble in class GribPdspublic int getPerturbationNumber()
getPerturbationNumber in class GribPdspublic int getPerturbationType()
getPerturbationType in class GribPdspublic boolean isEnsembleDerived()
isEnsembleDerived in class GribPdspublic int getNumberEnsembleForecasts()
getNumberEnsembleForecasts in class GribPdspublic boolean isProbability()
isProbability in class GribPdspublic double getProbabilityLowerLimit()
getProbabilityLowerLimit in class GribPdspublic double getProbabilityUpperLimit()
getProbabilityUpperLimit in class GribPdspublic int getProbabilityType()
getProbabilityType in class GribPdspublic boolean isPercentile()
isPercentile in class GribPdspublic int getPercentileValue()
getPercentileValue in class GribPdspublic void show(Formatter f)
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.