public class Grib1Record
extends java.lang.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,
java.util.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 java.io.IOException
raf
- positioned at start of message: the 'G' in "GRIB"java.io.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 java.io.IOException
java.io.IOException
public float[] readDataRaw(RandomAccessFile raf, GribData.InterpolationMethod method) throws java.io.IOException
java.io.IOException
public void showDataInfo(RandomAccessFile raf, java.util.Formatter f) throws java.io.IOException
java.io.IOException
public static float[] readData(RandomAccessFile raf, long startPos) throws java.io.IOException
raf
- from this RandomAccessFilestartPos
- message starts herejava.io.IOException
- on read errorpublic GribData.Info getBinaryDataInfo(RandomAccessFile raf) throws java.io.IOException
java.io.IOException
public int[] readRawData(RandomAccessFile raf) throws java.io.IOException
java.io.IOException