|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.grib.GribPds
ucar.grib.grib2.Grib2Pds
@Immutable public abstract class Grib2Pds
| Nested Class Summary | |
|---|---|
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
|
| Field Summary | |
|---|---|
protected int[] |
intv
|
protected long |
refTime
|
protected int |
template
|
protected long |
validTime
|
| Fields inherited from class ucar.grib.GribPds |
|---|
input |
| Constructor Summary | |
|---|---|
protected |
Grib2Pds(byte[] input,
long refTime,
Calendar cal)
Constructs a Grib2PDSVariables object from a byte[]. |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class ucar.grib.GribPds |
|---|
factory, getLevelType1, getLevelType2, getLevelValue1, getLevelValue2, getOctet, getPDSBytes, getReferenceDate, getTimeUnit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final int template
protected final long refTime
protected long validTime
protected int[] intv
| Constructor Detail |
|---|
protected Grib2Pds(byte[] input,
long refTime,
Calendar cal)
throws IOException
input - PDSrefTime - reference time in msecscal - helper for creating Dates
IOException - if raf contains no valid GRIB file| Method Detail |
|---|
public static Grib2Pds factory(byte[] input,
long refTime,
Calendar cal)
throws IOException
input - raw bytesrefTime - reference time in msecscal - helper object
IOException - on read error
public static long makeDate(long refTime,
int timeUnit,
int forecastTime,
Calendar cal)
public static int makeForecastTime(long refTime,
long foreDate,
int timeUnit)
public long getReferenceTime()
GribPds
getReferenceTime 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()
GribPds
getForecastDate in class GribPdspublic int getGenProcessId()
getGenProcessId in class GribPdspublic boolean isInterval()
GribPds
isInterval in class GribPdspublic int getStatisticalProcessType()
GribPds
getStatisticalProcessType in class GribPdspublic long getIntervalTimeEnd()
GribPds
getIntervalTimeEnd 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||