ucar.grib.grib2
Class Grib2DataRepresentationSection

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

public final class Grib2DataRepresentationSection
extends java.lang.Object

A class that represents the DataRepresentationSection of a GRIB product. These are the variables needed by the Data Section class


Constructor Summary
Grib2DataRepresentationSection(ucar.unidata.io.RandomAccessFile raf)
          Constructs a Grib2DataRepresentationSection object from a raf.
 
Method Summary
 int getBinaryScaleFactor()
          Binary scale factor (E).
 int getBitsGroupWidths()
          Number of bits used for the group widths (after the reference value in octet 36 has been removed).
 int getBitsScaledGroupLength()
          Number of bits used for the scaled group lengths (after subtraction of the reference value given in octets 38-41 and division by the length increment given in octet 42).
 int getCompressionMethod()
          Type compression method used (see Code Table 5.40000).
 int getCompressionRatio()
          Compression ratio used .
 int getDataPoints()
          Get the number of dataPoints in DS section.
 int getDataTemplateNumber()
          Get the Data Template Number for the GRID.
 int getDecimalScaleFactor()
          Decimal scale factor (D).
 int getDescriptorSpatial()
          Number of octets required in the Data Section to specify extra descriptors needed for spatial differencing (octets 6-ww in Data Template 7.3).
 int getLength()
          Get the byte length of the Section DRS section.
 int getLengthIncrement()
          Length increment for the group lengths (see Note 14).
 int getLengthLastGroup()
          Length increment for the group lengths (see Note 14).
 int getMissingValueManagement()
          Missing value management used (see Code Table 5.5).
 int getNumberOfBits()
          Number of bits used for each packed value..
 int getNumberOfGroups()
          NG - Number of groups of data values into which field is split.
 int getOrderSpatial()
          Order of spatial differencing (see Code Table 5.6).
 int getOriginalType()
          Type of original field values.
 float getPrimaryMissingValue()
          Primary missing value substitute.
 int getReferenceGroupLength()
          Reference for group lengths (see Note 13).
 int getReferenceGroupWidths()
          Reference for group widths (see Note 12).
 float getReferenceValue()
          Reference value (R) (IEEE 32-bit floating-point value).
 float getSecondaryMissingValue()
          Secondary missing value substitute.
 int getSplittingMethod()
          Group splitting method used (see Code Table 5.4).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2DataRepresentationSection

public Grib2DataRepresentationSection(ucar.unidata.io.RandomAccessFile raf)
                               throws java.io.IOException
Constructs a Grib2DataRepresentationSection object from a raf.

Parameters:
raf - RandomAccessFile with Section DRS content
Throws:
java.io.IOException - if stream contains no valid GRIB file
Method Detail

getLength

public final int getLength()
Get the byte length of the Section DRS section.

Returns:
length in bytes of Section DRS section

getDataPoints

public final int getDataPoints()
Get the number of dataPoints in DS section.

Returns:
number of dataPoints in DS section

getDataTemplateNumber

public final int getDataTemplateNumber()
Get the Data Template Number for the GRID.

Returns:
Data Template Number

getReferenceValue

public final float getReferenceValue()
Reference value (R) (IEEE 32-bit floating-point value).

Returns:
ReferenceValue

getBinaryScaleFactor

public final int getBinaryScaleFactor()
Binary scale factor (E).

Returns:
BinaryScaleFactor

getDecimalScaleFactor

public final int getDecimalScaleFactor()
Decimal scale factor (D).

Returns:
DecimalScaleFactor

getNumberOfBits

public final int getNumberOfBits()
Number of bits used for each packed value..

Returns:
NumberOfBits NB

getOriginalType

public final int getOriginalType()
Type of original field values.

Returns:
OriginalType dataType

getSplittingMethod

public final int getSplittingMethod()
Group splitting method used (see Code Table 5.4).

Returns:
SplittingMethod

getCompressionMethod

public final int getCompressionMethod()
Type compression method used (see Code Table 5.40000).

Returns:
CompressionMethod

getCompressionRatio

public final int getCompressionRatio()
Compression ratio used .

Returns:
CompressionRatio

getMissingValueManagement

public final int getMissingValueManagement()
Missing value management used (see Code Table 5.5).

Returns:
MissingValueManagement

getPrimaryMissingValue

public final float getPrimaryMissingValue()
Primary missing value substitute.

Returns:
PrimaryMissingValue

getSecondaryMissingValue

public final float getSecondaryMissingValue()
Secondary missing value substitute.

Returns:
SecondaryMissingValue

getNumberOfGroups

public final int getNumberOfGroups()
NG - Number of groups of data values into which field is split.

Returns:
NumberOfGroups NG

getReferenceGroupWidths

public final int getReferenceGroupWidths()
Reference for group widths (see Note 12).

Returns:
ReferenceGroupWidths

getBitsGroupWidths

public final int getBitsGroupWidths()
Number of bits used for the group widths (after the reference value in octet 36 has been removed).

Returns:
BitsGroupWidths

getReferenceGroupLength

public final int getReferenceGroupLength()
Reference for group lengths (see Note 13).

Returns:
ReferenceGroupLength

getLengthIncrement

public final int getLengthIncrement()
Length increment for the group lengths (see Note 14).

Returns:
LengthIncrement

getLengthLastGroup

public final int getLengthLastGroup()
Length increment for the group lengths (see Note 14).

Returns:
LengthLastGroup

getBitsScaledGroupLength

public final int getBitsScaledGroupLength()
Number of bits used for the scaled group lengths (after subtraction of the reference value given in octets 38-41 and division by the length increment given in octet 42).

Returns:
BitsScaledGroupLength

getOrderSpatial

public final int getOrderSpatial()
Order of spatial differencing (see Code Table 5.6).

Returns:
OrderSpatial

getDescriptorSpatial

public final int getDescriptorSpatial()
Number of octets required in the Data Section to specify extra descriptors needed for spatial differencing (octets 6-ww in Data Template 7.3).

Returns:
DescriptorSpatial