public class Grib1Record extends Object
| Constructor and Description |
|---|
Grib1Record(byte[] header,
Grib1SectionIndicator is,
Grib1SectionGridDefinition gdss,
Grib1SectionProductDefinition pdss,
Grib1SectionBitMap bitmap,
Grib1SectionBinaryData dataSection)
Construction for Grib1Record.
|
Grib1Record(RandomAccessFile raf)
Construct record by reading raf, no checking
|
| Modifier and Type | Method and Description |
|---|---|
Grib1SectionBitMap |
getBitMapSection() |
Grib1SectionBinaryData |
getDataSection() |
int |
getFile() |
Grib1SectionGridDefinition |
getGDSsection() |
byte[] |
getHeader() |
Grib1SectionIndicator |
getIs() |
Grib1SectionProductDefinition |
getPDSsection() |
CalendarDate |
getReferenceDate() |
float[] |
readData(RandomAccessFile raf) |
static float[] |
readData(RandomAccessFile raf,
long startPos)
Read data array by first reading in GribRecord
|
void |
setFile(int file) |
void |
show(Formatter f) |
public Grib1Record(byte[] header,
Grib1SectionIndicator is,
Grib1SectionGridDefinition gdss,
Grib1SectionProductDefinition pdss,
Grib1SectionBitMap bitmap,
Grib1SectionBinaryData dataSection)
header - Grib headeris - Grib1IndicatorSectiongdss - Grib1GridDefinitionSectionpdss - Grib1ProductDefinitionSectionbitmap - Grib1SectionBitMapdataSection - Grib1SectionDatapublic Grib1Record(RandomAccessFile raf) throws IOException
raf - positioned at start of message: the 'G' in "GRIB"IOException - on read errorpublic byte[] getHeader()
public Grib1SectionIndicator getIs()
public Grib1SectionGridDefinition getGDSsection()
public Grib1SectionProductDefinition getPDSsection()
public Grib1SectionBitMap getBitMapSection()
public Grib1SectionBinaryData getDataSection()
public CalendarDate getReferenceDate()
public void show(Formatter f)
public int getFile()
public void setFile(int file)
public float[] readData(RandomAccessFile raf) throws IOException
IOExceptionpublic static float[] readData(RandomAccessFile raf, long startPos) throws IOException
raf - from this RandomAccessFilestartPos - message starts hereIOException - on read errorCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.