@Immutable
public class Grib2SectionProductDefinition
extends java.lang.Object
| Constructor and Description |
|---|
Grib2SectionProductDefinition(byte[] rawData)
Set PDS section from byte array.
|
Grib2SectionProductDefinition(RandomAccessFile raf)
Read Product Definition section from raf.
|
| Modifier and Type | Method and Description |
|---|---|
long |
calcCRC()
Calculate the CRC of the entire byte array
|
int |
getLength() |
Grib2Pds |
getPDS()
Parse the raw bytes into a Grib2Pds
|
int |
getPDSTemplateNumber()
Get PDS Template Number (code table 4.0)
|
byte[] |
getRawBytes()
get the raw bytes of the PDS
|
public Grib2SectionProductDefinition(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 Grib2SectionProductDefinition(byte[] rawData)
rawData - the byte arraypublic byte[] getRawBytes()
public long calcCRC()
public int getLength()
public int getPDSTemplateNumber()
public Grib2Pds getPDS()