@Immutable public class Grib2SectionProductDefinition extends 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() |
int |
getPDSTemplateNumber()
Get PDS Template Number (code table 4.0)
|
byte[] |
getRawBytes()
get the raw bytes of the PDS
|
public Grib2SectionProductDefinition(RandomAccessFile raf) throws IOException
raf - RandomAccessFile, with pointer at start of sectionIOException - on I/O errorIllegalArgumentException - 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() throws IOException
IOExceptionCopyright © 1999–2013 UCAR/Unidata. All rights reserved.