|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jgrib.GribRecordPDS
public class GribRecordPDS
A class representing the product definition section (PDS) of a GRIB record.
Field Summary | |
---|---|
protected java.util.Calendar |
baseTime
Model Run/Analysis/Reference time. |
protected boolean |
bms_exists
True, if BMS exists. |
protected java.lang.String |
connector
String used in building a string to represent the time(s) for this PDS See the decoder for octet 21 to get an understanding |
protected int |
decscale
Exponent of decimal scale. |
protected java.util.Calendar |
forecastTime
Forecast time. |
protected java.util.Calendar |
forecastTime2
Ending time when times represent a period |
protected boolean |
gds_exists
True, if GDS exists. |
protected int |
grid_id
ID of grid type. |
protected int |
length
Length in bytes of this PDS. |
protected GribPDSLevel |
level
Class containing the information about the level. |
protected GribPDSParameter |
parameter
The parameter as defined in the Parameter Table |
protected java.lang.String |
timeRange
String used in building a string to represent the time(s) for this PDS See the decoder for octet 21 to get an understanding |
Constructor Summary | |
---|---|
GribRecordPDS(BitInputStream in)
Constructs a GribRecordPDS object from a bit input stream. |
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(java.lang.Object obj)
rdg - added an equals method here |
boolean |
gdsExists()
Check if GDS exists. |
int |
getCenterId()
|
int |
getDecimalScale()
Get the exponent of the decimal scale used for all data values. |
java.lang.String |
getDescription()
Get a descritpion of the parameter. |
java.util.Calendar |
getGMTBaseTime()
Get the base (analysis) time of the forecast in GMT. |
java.util.Calendar |
getGMTForecastTime()
Get the time of the forecast. |
int |
getLength()
Get the byte length of this section. |
java.lang.String |
getLevel()
Get the level of the forecast/analysis. |
java.lang.String |
getLevelDesc()
Get the long description for this level of the forecast/analysis. |
java.lang.String |
getLevelName()
Get the name for the type of level for this forecast/analysis. |
java.lang.String |
getLevelUnits()
Get the units for the level of the forecast/analysis. |
float |
getLevelValue()
Get the numeric value for this level. |
float |
getLevelValue2()
Get value 2 (if it exists) for this level. |
java.util.Calendar |
getLocalBaseTime()
Get the base (analysis) time of the forecast in local time zone. |
java.util.Calendar |
getLocalForecastTime()
Get the time of the forecast in local time zone. |
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 |
getProcessId()
|
int |
getSubcenterId()
|
int |
getTableVersion()
|
java.lang.String |
getType()
Get the type of the parameter. |
java.lang.String |
getUnit()
Get the name of the unit of the parameter. |
java.lang.String |
headerToString()
Get a string representation of this Header information for this PDS. |
java.lang.String |
toString()
Get a string representation of this PDS. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int length
protected int decscale
protected int grid_id
protected boolean gds_exists
protected boolean bms_exists
protected GribPDSParameter parameter
protected GribPDSLevel level
protected java.util.Calendar baseTime
protected java.util.Calendar forecastTime
protected java.util.Calendar forecastTime2
protected java.lang.String timeRange
protected java.lang.String connector
Constructor Detail |
---|
public GribRecordPDS(BitInputStream in) throws NotSupportedException, java.io.IOException
in
- bit input stream with PDS content
java.io.IOException
- if stream can not be opened etc.
NotSupportedException
Method Detail |
---|
public int getLength()
public boolean gdsExists()
public boolean bmsExists()
public int getDecimalScale()
public java.lang.String getType()
public java.lang.String getDescription()
public java.lang.String getUnit()
public java.lang.String getLevel()
public java.lang.String getLevelName()
public java.lang.String getLevelDesc()
public java.lang.String getLevelUnits()
public float getLevelValue()
public float getLevelValue2()
public GribPDSLevel getPDSLevel()
public int getCenterId()
public int getSubcenterId()
public int getTableVersion()
public int getProcessId()
public GribPDSParamTable getParamTable()
public java.util.Calendar getLocalBaseTime()
public java.util.Calendar getLocalForecastTime()
public GribPDSParameter getParameter()
public java.util.Calendar getGMTBaseTime()
public java.util.Calendar getGMTForecastTime()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String headerToString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- - to test
Object.equals(java.lang.Object)
public int compare(GribRecordPDS pds)
pds
- - GribRecordPDS object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |