@Immutable public class Grib1SectionGridDefinition extends 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
|
double[] |
getVerticalCoordinateParameters() |
boolean |
hasVerticalCoordinateParameters() |
boolean |
isThin()
is a "thin" grid
|
String |
toString() |
public Grib1SectionGridDefinition(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile, with pointer at start of sectionIOException
- on I/O errorIllegalArgumentException
- 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 double[] getVerticalCoordinateParameters()
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.