|
||||||||||
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 fileMethod 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 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()
GribPds
getReferenceTime
in class GribPds
public 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 GribPds
public int getGenProcessType()
public String getUseGenProcessType()
public Date getForecastDate()
GribPds
getForecastDate
in class GribPds
public int getGenProcessId()
getGenProcessId
in class GribPds
public boolean isInterval()
GribPds
isInterval
in class GribPds
public int getStatisticalProcessType()
GribPds
getStatisticalProcessType
in class GribPds
public long getIntervalTimeEnd()
GribPds
getIntervalTimeEnd
in class GribPds
public int getForecastTime()
getForecastTime
in class GribPds
public int[] getForecastTimeInterval()
getForecastTimeInterval
in class GribPds
public int[] getForecastTimeInterval(int wantUnit)
getForecastTimeInterval
in class GribPds
protected int _getForecastTime()
public boolean isEnsemble()
isEnsemble
in class GribPds
public int getPerturbationNumber()
getPerturbationNumber
in class GribPds
public int getPerturbationType()
getPerturbationType
in class GribPds
public boolean isEnsembleDerived()
isEnsembleDerived
in class GribPds
public int getNumberEnsembleForecasts()
getNumberEnsembleForecasts
in class GribPds
public boolean isProbability()
isProbability
in class GribPds
public double getProbabilityLowerLimit()
getProbabilityLowerLimit
in class GribPds
public double getProbabilityUpperLimit()
getProbabilityUpperLimit
in class GribPds
public int getProbabilityType()
getProbabilityType
in class GribPds
public boolean isPercentile()
isPercentile
in class GribPds
public int getPercentileValue()
getPercentileValue
in class GribPds
public void show(Formatter f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |