|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGribRecord
public final class GribRecord
A class representing a single GRIB record. A record consists of five sections: indicator section (IS), product definition section (PDS), grid definition section (GDS), bitmap section (BMS) and binary data section (BDS). The sections can be obtained using the getIS, getPDS, ... methods.
Constructor Summary | |
---|---|
GribRecord()
GribRecord, default constructor. |
|
GribRecord(GribRecordIS is,
GribRecordPDS pds,
GribRecordGDS gds,
GribRecordBDS bds,
GribRecordBMS bms)
This function creates a GribRecord by providing all the sections needed to da that. |
Method Summary | |
---|---|
int |
compareTo(GribRecord record)
|
boolean |
equals(Object obj)
|
GribRecordBDS |
getBDS()
Get the binary data section of this GRIB record. |
GribRecordBMS |
getBMS()
Get the bitmap section of this GRIB record. |
String |
getDescription()
Get a more detailed description of the parameter. |
GribRecordGDS |
getGDS()
Get the grid definition section of this GRIB record. |
double[] |
getGridCoords()
Get grid coordinates in longitude/latitude |
GribRecordIS |
getIS()
Get the indicator section of this GRIB record. |
int |
getLength()
Get the byte length of this GRIB record. |
String |
getLevel()
Get the level (height or pressure) description. |
GribRecordPDS |
getPDS()
Get the product definition section of this GRIB record. |
Calendar |
getTime()
Get the base time of this GRIB record. |
String |
getType()
Get the parameter type of this GRIB record. |
String |
getUnit()
Get the unit for the parameter. |
double |
getValue(int i,
int j)
Get a single value from the BDS using i/x, j/y index. |
WritableRaster |
getValues()
Get data/parameter values as a writable raster of float. |
void |
setBDS(GribRecordBDS bds)
|
void |
setBMS(GribRecordBMS bms)
setBMS |
void |
setGDS(GribRecordGDS gds)
Set the GDS for this record. |
void |
setIS(GribRecordIS is)
Creates and set the IS for this record. |
void |
setPDS(GribRecordPDS pds)
Set the PDs for the current record. |
String |
toString()
Get a string representation of this GRIB record. |
void |
writeTo(OutputStream out)
writeTo |
Methods inherited from class Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GribRecord()
public GribRecord(GribRecordIS is, GribRecordPDS pds, GribRecordGDS gds, GribRecordBDS bds, GribRecordBMS bms)
is
- Indicator Section.pds
- Product Description Section.gds
- Grid Description Section.bds
- Binary Description Section.bms
- Binary Description Section.Method Detail |
---|
public final int getLength()
public final GribRecordIS getIS()
public final GribRecordPDS getPDS()
public final GribRecordGDS getGDS()
public final GribRecordBMS getBMS()
public final GribRecordBDS getBDS()
public final double[] getGridCoords()
public WritableRaster getValues() throws IOException
NoValidGribException
IOException
public double getValue(int i, int j) throws IOException
i
- DOCUMENT ME!j
- DOCUMENT ME!
NoValidGribException
- DOCUMENT ME!
IOException
public final String getType()
public final String getDescription()
public final String getUnit()
public String getLevel()
public Calendar getTime()
public String toString()
toString
in class Object
public void writeTo(OutputStream out) throws IOException
out
- OutputStream
IOException
- DOCUMENT ME!public boolean equals(Object obj)
equals
in class Object
public void setBDS(GribRecordBDS bds) throws IOException
decimalScale
- datumPointLength
- raster
- isConstant
- max
- min
- d
-
IOException
public void setBMS(GribRecordBMS bms)
bms
- boolean[]public void setGDS(GribRecordGDS gds)
gds
- GribRecordGDS The GDS record to assign to this record.public void setPDS(GribRecordPDS pds)
paramTableVersion
- centerID
- generatingProcessID
- gridID
- GDS
- BMS
- paramID
- levelID
- levelValue1
- levelValue2
- referenceTime
- forecastTimeUnitID
- P1
- P2
- timeRangeID
- includedInAvrage
- missingFromAverage
- subCenterID
- decimalScaleFactor
- public void setIS(GribRecordIS is)
edition
- int Edition number for this grib record. (We currently support
1)PDS
- int PDS length.GDS
- int GDS length.BMS
- int BMS length.BDS
- int BDS length.
NotSupportedException
public int compareTo(GribRecord record)
compareTo
in interface Comparable<GribRecord>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |