@Immutable public abstract class Grib2Pds extends Object
| 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 byte[] |
input |
protected int |
template |
| Modifier | Constructor and Description |
|---|---|
protected |
Grib2Pds(byte[] input)
Constructs a Grib2PDSVariables object from a byte[].
|
| Modifier and Type | Method and Description |
|---|---|
protected CalendarDate |
calcTime(int startIndex) |
static Grib2Pds |
factory(int template,
byte[] input)
Factory for Grib2Pds
|
int |
getBackProcessId() |
float[] |
getExtraCoordinates() |
int |
getExtraCoordinatesCount()
Number of coordinate values at end of template.
|
int |
getForecastTime()
Forecast time in units of getTimeUnit() (bytes 19-22)
forecast time for points, should not be used for intervals
|
int |
getGenProcessId()
Forecast/Analysis generating process identifier (defined by originating centre).
|
int |
getGenProcessType()
Type of Generating Process (Code Table 4.3)
|
int |
getLevelScale() |
int |
getLevelType1() |
int |
getLevelType2() |
double |
getLevelValue1() |
double |
getLevelValue2() |
int |
getNumberEnsembleForecasts() |
int |
getOctet(int index)
Get the indexth byte in the PDS as an integer.
|
int |
getOctetSigned(int index) |
int |
getParameterCategory()
Parameter Category
|
int |
getParameterNumber()
Parameter Number
|
int |
getPercentileValue() |
int |
getPerturbationNumber() |
int |
getPerturbationType() |
double |
getProbabilityLowerLimit() |
int |
getProbabilityType() |
double |
getProbabilityUpperLimit() |
int |
getRawLength() |
int |
getStatisticalProcessType() |
int |
getTemplateNumber()
product Definition template, Table 4.0
|
abstract int |
getTimeUnit() |
boolean |
isEnsemble() |
boolean |
isEnsembleDerived() |
boolean |
isPercentile() |
boolean |
isProbability() |
boolean |
isSpatialInterval() |
boolean |
isTimeInterval() |
void |
show(Formatter f) |
abstract int |
templateLength() |
protected Grib2Pds(byte[] input)
throws IOException
input - PDSIOException - if raf contains no valid GRIB filepublic static Grib2Pds factory(int template, byte[] input) throws IOException
template - pds template numberinput - raw bytesIOException - on read errorpublic abstract int getTimeUnit()
public abstract int templateLength()
public int getExtraCoordinatesCount()
public final float[] getExtraCoordinates()
public final int getTemplateNumber()
public final int getParameterCategory()
public final int getParameterNumber()
public int getGenProcessType()
public double getLevelValue1()
public int getLevelScale()
public double getLevelValue2()
public int getLevelType1()
public int getLevelType2()
public int getGenProcessId()
public int getBackProcessId()
public boolean isTimeInterval()
public boolean isSpatialInterval()
public int getStatisticalProcessType()
public int getForecastTime()
public boolean isEnsemble()
public int getPerturbationNumber()
public int getPerturbationType()
public boolean isEnsembleDerived()
public int getNumberEnsembleForecasts()
public boolean isProbability()
public double getProbabilityLowerLimit()
public double getProbabilityUpperLimit()
public int getProbabilityType()
public boolean isPercentile()
public int getPercentileValue()
public void show(Formatter f)
public final int getOctet(int index)
index - 1 based indexpublic final int getOctetSigned(int index)
public final int getRawLength()
protected CalendarDate calcTime(int startIndex)
Copyright © 1999–2013 UCAR/Unidata. All rights reserved.