|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGribRecordBDS
public final class GribRecordBDS
A class representing the binary data section (BDS) of a GRIB record.
Constructor Summary | |
---|---|
GribRecordBDS(ImageInputStream inStream,
int decimalscale,
GribRecordGDS gds,
GribRecordBMS bms)
DOCUMENT ME! |
|
GribRecordBDS(int decimalScale,
int datumPointBitLength,
WritableRaster data,
boolean isConstant,
double max,
double min,
int numValidValues,
GribRecordGDS gds,
GribRecordBMS bms)
GribRecordBDS constructor to be used when creating a GRIB from scratch. |
Method Summary | |
---|---|
WritableRaster |
copyValues()
|
WritableRaster |
copyValues(Rectangle2D roi)
|
boolean |
equals(Object obj)
|
int |
getBinaryScale()
Get the binary scale factor. |
boolean |
getIsConstant()
Get whether this BDS is single valued |
int |
getLength()
Get the length in bytes of this section. |
double |
getMaxValue()
Get maximum value |
double |
getMinValue()
Get minimum value |
int |
getNumBits()
Get number of bits used per parameter value. |
int |
getNumValidValues()
DOCUMENT ME! |
double |
getReferenceValue()
Get the reference value all data values are based on. |
WritableRaster |
getValues()
Get data/parameter values as an array of double. |
WritableRaster |
getValues(Rectangle2D roi)
|
String |
toString()
Get a string representation of this BDS. |
void |
writeTo(OutputStream out)
Serialization of BDS section with emphasis on data packing. |
Methods inherited from class Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GribRecordBDS(int decimalScale, int datumPointBitLength, WritableRaster data, boolean isConstant, double max, double min, int numValidValues, GribRecordGDS gds, GribRecordBMS bms)
decimalScale
- int >=0.datumPointBitLength
- int If 0 we will use vairbale length.data
- Raster matrix of data.isConstant
- DOCUMENT ME!max
- DOCUMENT ME!min
- DOCUMENT ME!numValidValues
- DOCUMENT ME!gds
- DOCUMENT ME!bms
- DOCUMENT ME!public GribRecordBDS(ImageInputStream inStream, int decimalscale, GribRecordGDS gds, GribRecordBMS bms) throws IOException
inStream
- decimalscale
- DOCUMENT ME!gds
- DOCUMENT ME!bms
- DOCUMENT ME!
IOException
NotSupportedException
Method Detail |
---|
public int getLength()
public int getBinaryScale()
public boolean getIsConstant()
public double getReferenceValue()
public int getNumBits()
public WritableRaster getValues() throws IOException
NoValidGribException
IOException
public WritableRaster getValues(Rectangle2D roi) throws IOException
IOException
public final WritableRaster copyValues() throws IOException
IOException
public WritableRaster copyValues(Rectangle2D roi) throws IOException
IOException
public double getMinValue()
public double getMaxValue()
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 int getNumValidValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |