ucar.grib.grib1
Class Grib1Product

java.lang.Object
  extended by ucar.grib.grib1.Grib1Product

public final class Grib1Product
extends java.lang.Object

Title: Grib1 Description: Class which has the necessary information about a product in a Grib1 File to extract the data for the product.

Version:
1.0
Author:
Robb Kambic

Constructor Summary
Grib1Product(java.lang.String header, Grib1ProductDefinitionSection pds, java.lang.String gdsKey, int gdskey, long offset, long size)
          Constructor.
 
Method Summary
 int getCategory()
          get category of this product as int.
 int getDiscipline()
          get the discipline of product as int.
 java.lang.String getGDSkey()
          gets GDS key for this product.
 int getGDSkeyInt()
           
 long getOffset1()
          offset1 usually is the Gds offset for this record.
 long getOffset2()
          offset2 usually is the BMS or Data section offset.
 Grib1ProductDefinitionSection getPDS()
          get the PDS for this product.
 void setGDSkey(java.lang.String aGDSkey)
          sets the GDS key for this product.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1Product

public Grib1Product(java.lang.String header,
                    Grib1ProductDefinitionSection pds,
                    java.lang.String gdsKey,
                    int gdskey,
                    long offset,
                    long size)
Constructor.

Parameters:
header -
pds -
gdsKey -
offset -
size - offset2 in file
Method Detail

getDiscipline

public final int getDiscipline()
get the discipline of product as int.

Returns:
discipline

getCategory

public final int getCategory()
get category of this product as int.

Returns:
category as a int

getGDSkey

public final java.lang.String getGDSkey()
gets GDS key for this product.

Returns:
gdsKey

getGDSkeyInt

public final int getGDSkeyInt()

setGDSkey

public final void setGDSkey(java.lang.String aGDSkey)
sets the GDS key for this product.

Parameters:
aGDSkey - MD5 checksum as text

getPDS

public final Grib1ProductDefinitionSection getPDS()
get the PDS for this product.

Returns:
pds

getOffset1

public final long getOffset1()
offset1 usually is the Gds offset for this record.

Returns:
offset1

getOffset2

public final long getOffset2()
offset2 usually is the BMS or Data section offset.

Returns:
offset2