public class Grib2Record
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
getlastRecordRead |
static Grib2Record |
lastRecordRead |
int |
repeat |
Constructor and Description |
---|
Grib2Record(byte[] header,
Grib2SectionIndicator is,
Grib2SectionIdentification id,
Grib2SectionLocalUse lus,
Grib2SectionGridDefinition gdss,
Grib2SectionProductDefinition pdss,
Grib2SectionDataRepresentation drs,
Grib2SectionBitMap bms,
Grib2SectionData dataSection,
boolean bmsReplaced,
int scanMode)
Construction for Grib2Record.
|
public int repeat
public static boolean getlastRecordRead
public static Grib2Record lastRecordRead
public Grib2Record(byte[] header, Grib2SectionIndicator is, Grib2SectionIdentification id, Grib2SectionLocalUse lus, Grib2SectionGridDefinition gdss, Grib2SectionProductDefinition pdss, Grib2SectionDataRepresentation drs, Grib2SectionBitMap bms, Grib2SectionData dataSection, boolean bmsReplaced, int scanMode)
header
- Grib headeris
- Grib2IndicatorSectionid
- Grib2IdentificationSectionlus
- raw bytes of local use sectiongdss
- Grib2GridDefinitionSectionpdss
- Grib2ProductDefinitionSectiondrs
- Grib2SectionDataRepresentationbms
- Grib2SectionBitMapdataSection
- Grib2SectionDatabmsReplaced
- Grib2SectionDatascanMode
- from GDS of this recordpublic byte[] getHeader()
public Grib2SectionIndicator getIs()
public Grib2SectionIdentification getId()
public boolean hasLocalUseSection()
public Grib2SectionLocalUse getLocalUseSection()
public Grib2SectionGridDefinition getGDSsection()
public Grib2SectionProductDefinition getPDSsection()
public Grib2SectionDataRepresentation getDataRepresentationSection()
public Grib2SectionBitMap getBitmapSection()
public Grib2SectionData getDataSection()
public int getDiscipline()
public CalendarDate getReferenceDate()
public Grib2Pds getPDS()
public Grib2Gds getGDS()
public int getScanMode()
public void show(java.util.Formatter f)
public void setLus(Grib2SectionLocalUse lus)
public void setGdss(Grib2SectionGridDefinition gdss)
public void setPdss(Grib2SectionProductDefinition pdss)
public void setDrs(Grib2SectionDataRepresentation drs)
public void setBms(Grib2SectionBitMap bms, boolean replaced)
public void setDataSection(Grib2SectionData dataSection)
public int getFile()
public void setFile(int file)
public boolean isBmsReplaced()
public java.lang.String toString()
toString
in class java.lang.Object
public float[] readData(RandomAccessFile raf) throws java.io.IOException
java.io.IOException
public int[] readRawData(RandomAccessFile raf) throws java.io.IOException
java.io.IOException
public Grib2Drs.Type40 readDataTest(RandomAccessFile raf) throws java.io.IOException
java.io.IOException
public float[] readData(RandomAccessFile raf, long drsPos) throws java.io.IOException
raf
- from this RandomAccessFiledrsPos
- Grib2SectionDataRepresentation starts herejava.io.IOException
- on read errorpublic static float[] readData(RandomAccessFile raf, long drsPos, long bmsPos, int gdsNumberPoints, int scanMode, int nx, int ny, int[] nptsInLine) throws java.io.IOException
raf
- from this RandomAccessFiledrsPos
- Grib2SectionDataRepresentation starts herebmsPos
- if non-zero, use the bms that starts heregdsNumberPoints
- gdss.getNumberPoints()scanMode
- gds.scanModenx
- gds.nxjava.io.IOException
- on read errorpublic void check(RandomAccessFile raf, java.util.Formatter f) throws java.io.IOException
java.io.IOException
public GribData.Info getBinaryDataInfo(RandomAccessFile raf) throws java.io.IOException
java.io.IOException