ucar.grib.grib2
Class Grib2Product

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

public final class Grib2Product
extends Object

Class which has all the necessary information about a record in a Grib2 File to extract the data.


Constructor Summary
Grib2Product(String header, Grib2IndicatorSection is, Grib2IdentificationSection id, String gdsKey, Grib2ProductDefinitionSection pds, long GdsOffset, long PdsOffset)
          Constructor.
Grib2Product(String header, Grib2IndicatorSection is, Grib2IdentificationSection id, String gdsKey, int gdskey, Grib2ProductDefinitionSection pds, long GdsOffset, long PdsOffset)
          Constructor.
 
Method Summary
 Date getBaseTime()
          base time for this product as date.
 int getDiscipline()
          Discipline number for this record.
 String getGDSkey()
          GDSkey is a hashcode of the GDS for this record.
 int getGDSkeyInt()
          GDSkey is a double of the hashcode of the GDS for this record.
 long getGdsOffset()
          Actual GDS offset in the Grib2 file.
 Grib2IdentificationSection getID()
          ID of this record.
 Grib2ProductDefinitionSection getPDS()
          Actual PDS of this record.
 long getPdsOffset()
          PDS offset in the file.
 long getRefTime()
          Reference time for this product.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2Product

public Grib2Product(String header,
                    Grib2IndicatorSection is,
                    Grib2IdentificationSection id,
                    String gdsKey,
                    Grib2ProductDefinitionSection pds,
                    long GdsOffset,
                    long PdsOffset)
Constructor.

Parameters:
header - Grib header
is - Grib2IndicatorSection
id - Grib2IdentificationSection
gdsKey - gdsKey
pds - Grib2ProductDefinitionSection
GdsOffset - GDS offset in Grib file
PdsOffset - PDS offset in Grib file

Grib2Product

public Grib2Product(String header,
                    Grib2IndicatorSection is,
                    Grib2IdentificationSection id,
                    String gdsKey,
                    int gdskey,
                    Grib2ProductDefinitionSection pds,
                    long GdsOffset,
                    long PdsOffset)
Constructor.

Parameters:
header - Grib header
is - Grib2IndicatorSection
id - Grib2IdentificationSection
gdsKey - gdsKey as a String
gdskey - as a int
pds - Grib2ProductDefinitionSection
GdsOffset - GDS offset in Grib file
PdsOffset - PDS offset in Grib file
Method Detail

getDiscipline

public final int getDiscipline()
Discipline number for this record.

Returns:
discipline

getBaseTime

public final Date getBaseTime()
base time for this product as date.

Returns:
baseTime

getRefTime

public final long getRefTime()
Reference time for this product.

Returns:
referenceTime

getGDSkey

public final String getGDSkey()
GDSkey is a hashcode of the GDS for this record.

Returns:
gdsKey

getGDSkeyInt

public final int getGDSkeyInt()
GDSkey is a double of the hashcode of the GDS for this record.

Returns:
gdskey

getPDS

public final Grib2ProductDefinitionSection getPDS()
Actual PDS of this record.

Returns:
pds

getID

public final Grib2IdentificationSection getID()
ID of this record.

Returns:
id

getGdsOffset

public final long getGdsOffset()
Actual GDS offset in the Grib2 file.

Returns:
GdsOffset

getPdsOffset

public final long getPdsOffset()
PDS offset in the file.

Returns:
PdsOffset


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