|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jgrib.GribRecord
public 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.
Field Summary | |
---|---|
protected GribRecordBDS |
bds
The binary data section. |
protected GribRecordBMS |
bms
The bitmap section. |
protected GribRecordGDS |
gds
The grid definition section. |
protected GribRecordIS |
is
The indicator section. |
protected GribRecordPDS |
pds
The product definition section. |
Constructor Summary | |
---|---|
GribRecord(BitInputStream in)
Constructs a GribRecord object from a bit input stream. |
|
GribRecord(GribRecordLight grl)
Constructs a GribRecord object from a bit input stream. |
Method Summary | |
---|---|
GribRecordBDS |
getBDS()
Get the binary data section of this GRIB record. |
GribRecordBMS |
getBMS()
Get the bitmap section of this GRIB record. |
java.lang.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. |
java.lang.String |
getLevel()
Get the level (height or pressure). |
GribRecordPDS |
getPDS()
Get the product definition section of this GRIB record. |
java.util.Calendar |
getTime()
Get the analysis or forecast time of this GRIB record. |
java.lang.String |
getType()
Get the parameter type of this GRIB record. |
java.lang.String |
getUnit()
Get the unit for the parameter. |
float |
getValue(int i,
int j)
Get a single value from the BDS using i/x, j/y index. |
float[] |
getValues()
Get data/parameter values as an array of float. |
java.lang.String |
toString()
Get a string representation of this GRIB record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected GribRecordIS is
protected GribRecordPDS pds
protected GribRecordGDS gds
protected GribRecordBMS bms
protected GribRecordBDS bds
Constructor Detail |
---|
public GribRecord(BitInputStream in) throws java.io.IOException, NotSupportedException, NoValidGribException
in
- bit input stream with GRIB record content
java.io.IOException
- if stream can not be opened etc.
NotSupportedException
NoValidGribException
- if stream contains no valid GRIB filepublic GribRecord(GribRecordLight grl) throws java.io.IOException, NoValidGribException, NotSupportedException
grl
- - a light grib record
java.io.IOException
- if stream can not be opened etc.
NoValidGribException
- if stream contains no valid GRIB file
NotSupportedException
Method Detail |
---|
public int getLength()
public GribRecordIS getIS()
public GribRecordPDS getPDS()
public GribRecordGDS getGDS()
public GribRecordBMS getBMS()
public GribRecordBDS getBDS()
public double[] getGridCoords()
public float[] getValues()
public float getValue(int i, int j) throws NoValidGribException
i
- j
-
NoValidGribException
public java.lang.String getType()
public java.lang.String getDescription()
public java.lang.String getUnit()
public java.lang.String getLevel()
public java.util.Calendar getTime()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |