|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.grib.GribPds
public abstract class GribPds
Grib1 and Grib 2 PDS superclass. Try to abstract the common fields. This is fairly low-level, corresponding to the actual values in the file. Meaning often depends if its GRIB1 or GRIB2 GridRecord translates these into values that are file type independdednt.
Field Summary | |
---|---|
protected byte[] |
input
|
Constructor Summary | |
---|---|
GribPds()
|
Method Summary | |
---|---|
static GribPds |
factory(int edition,
byte[] raw,
long baseTime,
Calendar cal)
|
abstract Date |
getForecastDate()
Forecast time as a Date |
abstract int |
getForecastTime()
Forecast time in units defined by getTimeUnit()) from getReferenceTime() |
abstract int[] |
getForecastTimeInterval()
Get the time interval of the forecast. |
abstract int[] |
getForecastTimeInterval(int wantUnit)
|
abstract int |
getGenProcessId()
|
abstract long |
getIntervalTimeEnd()
Grib-2 encodes an "end of overall time interval" . |
abstract int |
getLevelType1()
Get the type for the first level |
abstract int |
getLevelType2()
Get the type for the second level |
abstract double |
getLevelValue1()
Get the first level value |
abstract double |
getLevelValue2()
Get the second level |
abstract int |
getNumberEnsembleForecasts()
|
int |
getOctet(int index)
Get the indexth byte in the PDS as an integer. |
abstract int |
getParameterNumber()
Parameter number |
byte[] |
getPDSBytes()
PDS as byte[] |
abstract int |
getPercentileValue()
|
abstract int |
getPerturbationNumber()
|
abstract int |
getPerturbationType()
|
abstract double |
getProbabilityLowerLimit()
|
abstract int |
getProbabilityType()
|
abstract double |
getProbabilityUpperLimit()
|
Date |
getReferenceDate()
Reference time as a Date |
abstract long |
getReferenceTime()
Reference time as a long millis. |
abstract int |
getStatisticalProcessType()
Get Grib-2 Interval Statistic Type code, only valid if isInterval() |
abstract int |
getTimeUnit()
Time Unit code |
abstract boolean |
isEnsemble()
|
abstract boolean |
isEnsembleDerived()
|
abstract boolean |
isInterval()
Is this a time interval. |
abstract boolean |
isPercentile()
|
abstract boolean |
isProbability()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte[] input
Constructor Detail |
---|
public GribPds()
Method Detail |
---|
public static GribPds factory(int edition, byte[] raw, long baseTime, Calendar cal) throws IOException
IOException
public byte[] getPDSBytes()
public final int getOctet(int index)
index
- 1 based index
public abstract int getParameterNumber()
public abstract double getLevelValue1()
public abstract double getLevelValue2()
public abstract int getLevelType1()
public abstract int getLevelType2()
public abstract int getTimeUnit()
public abstract int getForecastTime()
public abstract Date getForecastDate()
public abstract long getReferenceTime()
public final Date getReferenceDate()
public abstract boolean isInterval()
public abstract int getStatisticalProcessType()
public abstract long getIntervalTimeEnd()
public abstract int[] getForecastTimeInterval()
public abstract int[] getForecastTimeInterval(int wantUnit)
public abstract int getGenProcessId()
public abstract boolean isEnsemble()
public abstract int getPerturbationNumber()
public abstract int getPerturbationType()
public abstract boolean isEnsembleDerived()
public abstract int getNumberEnsembleForecasts()
public abstract boolean isProbability()
public abstract double getProbabilityLowerLimit()
public abstract double getProbabilityUpperLimit()
public abstract int getProbabilityType()
public abstract boolean isPercentile()
public abstract int getPercentileValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |