public class Grib2Record extends 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
check(ucar.unidata.io.RandomAccessFile raf,
Formatter f) |
GribData.Info |
getBinaryDataInfo(ucar.unidata.io.RandomAccessFile raf) |
Grib2SectionBitMap |
getBitmapSection() |
Grib2SectionDataRepresentation |
getDataRepresentationSection() |
Grib2SectionData |
getDataSection() |
int |
getDiscipline() |
int |
getFile() |
Grib2Gds |
getGDS() |
Grib2SectionGridDefinition |
getGDSsection() |
byte[] |
getHeader() |
Grib2SectionIdentification |
getId() |
Grib2SectionIndicator |
getIs() |
Grib2SectionLocalUse |
getLocalUseSection() |
Grib2Pds |
getPDS() |
Grib2SectionProductDefinition |
getPDSsection() |
ucar.nc2.time.CalendarDate |
getReferenceDate() |
int |
getScanMode() |
boolean |
hasLocalUseSection() |
boolean |
isBmsReplaced() |
float[] |
readData(ucar.unidata.io.RandomAccessFile raf) |
float[] |
readData(ucar.unidata.io.RandomAccessFile raf,
long drsPos)
Read data array
|
static float[] |
readData(ucar.unidata.io.RandomAccessFile raf,
long drsPos,
long bmsPos,
int gdsNumberPoints,
int scanMode,
int nx,
int ny,
int[] nptsInLine)
Read data array: use when you want to be independent of the GribRecord
|
Grib2Drs.Type40 |
readDataTest(ucar.unidata.io.RandomAccessFile raf) |
int[] |
readRawData(ucar.unidata.io.RandomAccessFile raf) |
void |
setBms(Grib2SectionBitMap bms,
boolean replaced) |
void |
setDataSection(Grib2SectionData dataSection) |
void |
setDrs(Grib2SectionDataRepresentation drs) |
void |
setFile(int file) |
void |
setGdss(Grib2SectionGridDefinition gdss) |
void |
setLus(Grib2SectionLocalUse lus) |
void |
setPdss(Grib2SectionProductDefinition pdss) |
void |
show(Formatter f) |
String |
toString() |
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 ucar.nc2.time.CalendarDate getReferenceDate()
public Grib2Pds getPDS()
public Grib2Gds getGDS()
public int getScanMode()
public void show(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 float[] readData(ucar.unidata.io.RandomAccessFile raf)
throws IOException
IOException@Nullable public int[] readRawData(ucar.unidata.io.RandomAccessFile raf) throws IOException
IOException@Nullable public Grib2Drs.Type40 readDataTest(ucar.unidata.io.RandomAccessFile raf) throws IOException
IOExceptionpublic float[] readData(ucar.unidata.io.RandomAccessFile raf,
long drsPos)
throws IOException
raf - from this RandomAccessFiledrsPos - Grib2SectionDataRepresentation starts hereIOException - on read errorpublic static float[] readData(ucar.unidata.io.RandomAccessFile raf,
long drsPos,
long bmsPos,
int gdsNumberPoints,
int scanMode,
int nx,
int ny,
int[] nptsInLine)
throws IOException
raf - from this RandomAccessFiledrsPos - Grib2SectionDataRepresentation starts herebmsPos - if non-zero, use the bms that starts heregdsNumberPoints - gdss.getNumberPoints()scanMode - gds.scanModenx - gds.nxIOException - on read errorpublic void check(ucar.unidata.io.RandomAccessFile raf,
Formatter f)
throws IOException
IOExceptionpublic GribData.Info getBinaryDataInfo(ucar.unidata.io.RandomAccessFile raf) throws IOException
IOException