ucar.grib.grib2
Class Grib2Record

java.lang.Object
  extended by ucar.grib.grib2.Grib2Record

public final class Grib2Record
extends Object

Class which represents a record in a Grib2File. This is a heavyweight representation of the Grib record.


Constructor Summary
Grib2Record(String header, Grib2IndicatorSection is, Grib2IdentificationSection id, byte[] lus, Grib2GridDefinitionSection gds, Grib2ProductDefinitionSection pds, Grib2DataRepresentationSection drs, long GdsOffset, long PdsOffset)
          Construction for Grib2Record.
 
Method Summary
 Grib2DataRepresentationSection getDRS()
          returns Data Representation Section.
 Grib2GridDefinitionSection getGDS()
          returns GDS of record.
 long getGdsOffset()
          returns GDS offset in file.
 String getHeader()
          returns Header of Grib record.
 Grib2IdentificationSection getId()
          returns IdentificationSection.
 Grib2IndicatorSection getIs()
          returns Inofrmation Section of record.
 byte[] getLocalUseSection()
           
 Grib2ProductDefinitionSection getPDS()
          returns PDS.
 long getPdsOffset()
          returns Pds Offset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2Record

public Grib2Record(String header,
                   Grib2IndicatorSection is,
                   Grib2IdentificationSection id,
                   byte[] lus,
                   Grib2GridDefinitionSection gds,
                   Grib2ProductDefinitionSection pds,
                   Grib2DataRepresentationSection drs,
                   long GdsOffset,
                   long PdsOffset)
Construction for Grib2Record.

Parameters:
header - Grib header
is - Grib2IndicatorSection
id - Grib2IdentificationSection
lus - raw bytes of local use section
gds - Grib2GridDefinitionSection
pds - Grib2ProductDefinitionSection
drs - Grib2DataRepresentationSection
GdsOffset - GDS offset in Grib file
PdsOffset - PDS offset in Grib file
Method Detail

getHeader

public final String getHeader()
returns Header of Grib record.

Returns:
header

getGdsOffset

public final long getGdsOffset()
returns GDS offset in file.

Returns:
GdsOffset

getPdsOffset

public final long getPdsOffset()
returns Pds Offset.

Returns:
PdsOffset

getIs

public final Grib2IndicatorSection getIs()
returns Inofrmation Section of record.

Returns:
is

getId

public final Grib2IdentificationSection getId()
returns IdentificationSection.

Returns:
IdentificationSection

getLocalUseSection

public byte[] getLocalUseSection()

getGDS

public final Grib2GridDefinitionSection getGDS()
returns GDS of record.

Returns:
gds

getPDS

public final Grib2ProductDefinitionSection getPDS()
returns PDS.

Returns:
pds

getDRS

public final Grib2DataRepresentationSection getDRS()
returns Data Representation Section.

Returns:
DataRepresentationSection


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.