@Immutable
public final class Grib1SectionProductDefinition
extends java.lang.Object
Constructor and Description |
---|
Grib1SectionProductDefinition(byte[] rawData)
Set PDS section from byte array.
|
Grib1SectionProductDefinition(RandomAccessFile raf)
Read Product Definition section from raf.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bmsExists()
Check if BMS exists from the flag
|
long |
calcCRC() |
boolean |
gdsExists()
Check if GDS exists from the flag.
|
int |
getCenter()
Center (octet 5) common code C-1.
|
int |
getDecimalScale()
Units decimal scale factor (octet 27-28) .
|
int |
getFlag()
Flag (octet 8).
|
int |
getGenProcess()
Generating Process (octet 6).
|
int |
getGridDefinition()
Grid Definition (octet 7).
|
int |
getLength() |
int |
getLevelType()
Level type (octet 10) - code table 3.
|
int |
getLevelValue1()
Level value1 (octet 11).
|
int |
getLevelValue2()
Level value2 (octet 12).
|
int |
getNincluded()
Number included in statistics (octet 22-23).
|
int |
getNmissing()
Number missing in statistics (octet 24).
|
int |
getParameterNumber()
Parameter number (octet 9) - code table 2.
|
int |
getPerturbationNumber() |
int |
getPerturbationType() |
byte[] |
getRawBytes()
get the raw bytes of the PDS.
|
int |
getReferenceCentury()
Century of reference (octet 25).
|
CalendarDate |
getReferenceDate()
Reference Date (octet 13-17).
|
int |
getSubCenter()
Center (octet 26) common code C-12.
|
int |
getTableVersion()
gets the Table version (octet 4).
|
int |
getTimeRangeIndicator()
Time range indicator (octet 21) - code table 5.
|
int |
getTimeUnit()
Time unit (octet 18) - code table 4.
|
int |
getTimeValue1()
Time value 1 (octet 19).
|
int |
getTimeValue2()
Time value 2 (octet 20).
|
boolean |
isEnsemble() |
void |
showPds(Grib1Customizer cust,
java.util.Formatter f) |
public Grib1SectionProductDefinition(RandomAccessFile raf) throws java.io.IOException
raf
- RandomAccessFile, with pointer at start of sectionjava.io.IOException
- on I/O errorjava.lang.IllegalArgumentException
- if not a GRIB-2 recordpublic Grib1SectionProductDefinition(byte[] rawData)
rawData
- the byte arraypublic byte[] getRawBytes()
public int getLength()
public final int getTableVersion()
public final int getCenter()
public final int getGenProcess()
public final int getGridDefinition()
public final int getFlag()
public final int getParameterNumber()
public final int getLevelType()
public final int getLevelValue1()
public final int getLevelValue2()
public final CalendarDate getReferenceDate()
public final int getTimeUnit()
public final int getTimeValue1()
public final int getTimeValue2()
public final int getTimeRangeIndicator()
public final int getNincluded()
public final int getNmissing()
public final int getReferenceCentury()
public final int getSubCenter()
public final int getDecimalScale()
public final boolean gdsExists()
public final boolean bmsExists()
public void showPds(Grib1Customizer cust, java.util.Formatter f)
public boolean isEnsemble()
public final int getPerturbationType()
public final int getPerturbationNumber()
public long calcCRC()