public class Grib1Record extends Object
| Modifier and Type | Field and Description |
|---|---|
static Grib1Record |
lastRecordRead |
| 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 |
|---|---|
GribData.Info |
getBinaryDataInfo(RandomAccessFile raf) |
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.
|
float[] |
readDataRaw(RandomAccessFile raf,
GribData.InterpolationMethod method) |
int[] |
readRawData(RandomAccessFile raf) |
void |
setFile(int file) |
void |
showDataInfo(RandomAccessFile raf,
Formatter f) |
public static Grib1Record lastRecordRead
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 int getFile()
public void setFile(int file)
public float[] readData(RandomAccessFile raf) throws IOException
IOExceptionpublic float[] readDataRaw(RandomAccessFile raf, GribData.InterpolationMethod method) throws IOException
IOExceptionpublic void showDataInfo(RandomAccessFile raf, Formatter f) throws IOException
IOExceptionpublic static float[] readData(RandomAccessFile raf, long startPos) throws IOException
raf - from this RandomAccessFilestartPos - message starts hereIOException - on read errorpublic GribData.Info getBinaryDataInfo(RandomAccessFile raf) throws IOException
IOExceptionpublic int[] readRawData(RandomAccessFile raf) throws IOException
IOExceptionCopyright © 1999–2015 UCAR/Unidata. All rights reserved.