public class Grib1SectionGridDefinition
extends java.lang.Object
Constructor and Description |
---|
Grib1SectionGridDefinition(byte[] rawData)
Set Grib Definition section from byte array.
|
Grib1SectionGridDefinition(Grib1SectionProductDefinition pds) |
Grib1SectionGridDefinition(RandomAccessFile raf)
Read Grib Definition section from raf.
|
Modifier and Type | Method and Description |
---|---|
long |
calcCRC()
Calculate the CRC of the entire byte array
|
Grib1Gds |
getGDS() |
int |
getGridTemplate()
Get Grid Template number (code table 6)
|
int |
getLength() |
long |
getOffset() |
int |
getPredefinedGridDefinition()
From pds.getGridDefinition
|
byte[] |
getRawBytes()
get the raw bytes of the GDS
|
boolean |
hasVerticalCoordinateParameters() |
boolean |
isThin()
is a "thin" grid
|
java.lang.String |
toString() |
public Grib1SectionGridDefinition(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 Grib1SectionGridDefinition(byte[] rawData)
rawData
- the byte arraypublic Grib1SectionGridDefinition(Grib1SectionProductDefinition pds)
public byte[] getRawBytes()
public long calcCRC()
public int getLength()
public long getOffset()
public int getGridTemplate()
public int getPredefinedGridDefinition()
public Grib1Gds getGDS()
public final boolean isThin()
public boolean hasVerticalCoordinateParameters()
public java.lang.String toString()
toString
in class java.lang.Object