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() |
Grib1Gds |
getGDS() |
Grib1SectionGridDefinition |
getGDSsection() |
byte[] |
getHeader() |
Grib1SectionIndicator |
getIs() |
Grib1ParamTime |
getParamTime(Grib1Customizer cust) |
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 Grib1Gds getGDS()
public Grib1SectionProductDefinition getPDSsection()
public Grib1SectionBitMap getBitMapSection()
public Grib1SectionBinaryData getDataSection()
public CalendarDate getReferenceDate()
public int getFile()
public void setFile(int file)
public Grib1ParamTime getParamTime(Grib1Customizer cust)
public float[] readData(RandomAccessFile raf) throws IOException
IOException
public float[] readDataRaw(RandomAccessFile raf, GribData.InterpolationMethod method) throws IOException
IOException
public void showDataInfo(RandomAccessFile raf, Formatter f) throws IOException
IOException
public 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
IOException
public int[] readRawData(RandomAccessFile raf) throws IOException
IOException
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.