|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGribRecordPDS
public final class GribRecordPDS
A class representing the product definition section (PDS) of a GRIB record.
Constructor Summary | |
---|---|
GribRecordPDS(ImageInputStream in)
Constructs a GribRecordPDS object from a bit input stream. |
|
GribRecordPDS(int paramTableVersion,
int centerID,
int generatingProcessID,
int gridID,
boolean GDS,
boolean BMS,
int paramID,
int levelID,
double levelValue1,
double levelValue2,
Calendar referenceTime,
int forecastTimeUnitID,
int P1,
int P2,
int timeRangeID,
int includedInAverage,
int missingFromAverage,
int subCenterID,
int decimalScaleFactor)
GribRecordPDS constructor. |
Method Summary | |
---|---|
boolean |
bmsExists()
Check if BMS exists. |
int |
compare(GribRecordPDS pds)
rdg - added this method to be used in a comparator for sorting while extracting records. |
boolean |
equals(Object obj)
rdg - added an equals method here |
boolean |
gdsExists()
Check if GDS exists. |
int |
getDecimalScale()
Get the exponent of the decimal scale used for all data values. |
String |
getDescription()
Get a descritpion of the parameter. |
int |
getForecastTimeUnit()
getForecastTimeUnit |
int |
getGeneratingProcessID()
getGeneratingProcessID |
Calendar |
getGMTBaseTime()
Get the base (analysis) time of the forecast in GMT. |
Calendar |
getGMTForecastTime()
Get the time of the forecast. |
Calendar |
getGMTForecastTime2()
getGMTForecastTime2 |
int |
getGridID()
getGridID |
int |
getLength()
Get the byte length of this section. |
GribPDSLevel |
getLevel()
Get the level of the forecast/analysis. |
String |
getLevelDesc()
Get the long description for this level of the forecast/analysis. |
String |
getLevelName()
Get the name for the type of level for this forecast/analysis. |
String |
getLevelUnits()
Get the units for the level of the forecast/analysis. |
double |
getLevelValue()
Get the numeric value for this level. |
double |
getLevelValue2()
Get value 2 (if it exists) for this level. |
Calendar |
getLocalBaseTime()
Get the base (analysis) time of the forecast in local time zone. |
Calendar |
getLocalForecastTime()
Get the time of the forecast in local time zone. |
double |
getNumberIncludedInAverage()
getNumberIncludedInAverage |
double |
getNumberMissingFromAverage()
getNumberMissingFromAverage |
int |
getOriginatingCenterID()
getOriginatingCenterID |
int |
getP1()
getP1 |
int |
getP2()
getP2 |
GribPDSParameter |
getParameter()
Get the parameter for this pds. |
GribPDSParamTable |
getParamTable()
Get the Parameter Table that defines this parameter. |
GribPDSLevel |
getPDSLevel()
Get the level of the forecast/analysis. |
int |
getSubcenterID()
getSubcenterID |
int |
getTableVersion()
getTableVersion() We need this method because the version of the used table may be diferent from the one requested in case we do not have it. |
int |
getTimeRangeIndicator()
getTimeRangeIndicator |
String |
getType()
Get the type of the parameter. |
String |
getUnit()
Get the name of the unit of the parameter. |
String |
headerToString()
Get a string representation of this Header information for this PDS. |
String |
toString()
Get a string representation of this PDS. |
void |
writeTo(OutputStream out)
writeTo Writes the current section to an output stream as requested by the specifications on grib files. |
Methods inherited from class Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GribRecordPDS(ImageInputStream in) throws IOException
in
- bit input stream with PDS content
IOException
- if stream can not be opened etc.public GribRecordPDS(int paramTableVersion, int centerID, int generatingProcessID, int gridID, boolean GDS, boolean BMS, int paramID, int levelID, double levelValue1, double levelValue2, Calendar referenceTime, int forecastTimeUnitID, int P1, int P2, int timeRangeID, int includedInAverage, int missingFromAverage, int subCenterID, int decimalScaleFactor)
paramTableVersion
- DOCUMENT ME!centerID
- DOCUMENT ME!generatingProcessID
- DOCUMENT ME!gridID
- DOCUMENT ME!GDS
- DOCUMENT ME!BMS
- DOCUMENT ME!paramID
- DOCUMENT ME!levelID
- DOCUMENT ME!levelValue1
- DOCUMENT ME!levelValue2
- DOCUMENT ME!referenceTime
- DOCUMENT ME!forecastTimeUnitID
- DOCUMENT ME!P1
- DOCUMENT ME!P2
- DOCUMENT ME!timeRangeID
- DOCUMENT ME!includedInAverage
- DOCUMENT ME!missingFromAverage
- DOCUMENT ME!subCenterID
- DOCUMENT ME!decimalScaleFactor
- DOCUMENT ME!Method Detail |
---|
public int getLength()
public boolean gdsExists()
public boolean bmsExists()
public int getDecimalScale()
public String getType()
public String getDescription()
public String getUnit()
public GribPDSLevel getLevel()
public String getLevelName()
public String getLevelDesc()
public String getLevelUnits()
public double getLevelValue()
public double getLevelValue2()
public GribPDSLevel getPDSLevel()
public GribPDSParamTable getParamTable()
public Calendar getLocalBaseTime()
public Calendar getLocalForecastTime()
public GribPDSParameter getParameter()
public Calendar getGMTBaseTime()
public Calendar getGMTForecastTime()
public String toString()
toString
in class Object
public String headerToString()
public boolean equals(Object obj)
equals
in class Object
obj
- DOCUMENT ME!
public int compare(GribRecordPDS pds)
pds
- - the GribRecordGDS to compare to
public void writeTo(OutputStream out) throws IOException
out
- OutputStream
IOException
- DOCUMENT ME!public int getOriginatingCenterID()
public int getSubcenterID()
public int getGeneratingProcessID()
public int getP1()
public int getP2()
public int getTimeRangeIndicator()
public int getForecastTimeUnit()
public double getNumberIncludedInAverage()
public double getNumberMissingFromAverage()
public Calendar getGMTForecastTime2()
public int getGridID()
public int getTableVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |