ucar.grib.grib2
Class Grib2GridDefinitionSection

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

public final class Grib2GridDefinitionSection
extends Object

A class that represents the grid definition section (GDS) of a GRIB product. This is section 3 of a Grib record that contains coordinate information.


Constructor Summary
Grib2GridDefinitionSection(RandomAccessFile raf, boolean doCheckSum)
          Constructs a Grib2GridDefinitionSection object from a raf.
 
Method Summary
 float getAltitude()
          Deprecated.  
 int getAngle()
          Deprecated.  
 String getCheckSum()
          Deprecated.  
 float getDstart()
          Deprecated.  
 float getDx()
          Deprecated.  
 float getDy()
          Deprecated.  
 float getEarthRadius()
          Deprecated.  
 float getFactor()
          Deprecated.  
 int getGdsKey()
          .
 Grib2GDSVariables getGdsVars()
          GDS as Grib2GDSVariables
 int getGdtn()
          Grid Definition Template Number .
 String getGrid_units()
          Deprecated.  
 int getIolon()
          Deprecated.  
 float getJ()
          Deprecated.  
 float getK()
          Deprecated.  
 float getLa1()
          Deprecated.  
 float getLa2()
          Deprecated.  
 float getLad()
          Deprecated.  
 float getLap()
          Deprecated.  
 float getLatin1()
          Deprecated.  
 float getLatin2()
          Deprecated.  
 int getLength()
           
 float getLo1()
          Deprecated.  
 float getLo2()
          Deprecated.  
 float getLop()
          Deprecated.  
 float getLov()
          Deprecated.  
 float getM()
          Deprecated.  
 float getMajorAxis()
          Deprecated.  
 int getMaxPts()
          Deprecated.  
 int getMethod()
          Deprecated.  
 float getMinorAxis()
          Deprecated.  
 int getMode()
          Deprecated.  
 int getN()
          Deprecated.  
 int getN2()
          Deprecated.  
 int getN3()
          Deprecated.  
 float getNb()
          Deprecated.  
 int getNd()
          Deprecated.  
 int getNi()
          Deprecated.  
 float getNr()
          Deprecated.  
 int getNumberPoints()
          Deprecated.  
 int getNx()
          Deprecated.  
 int getNy()
          Deprecated.  
 int getOlon()
          Deprecated.  
 int[] getOlonPoints()
          Deprecated.  
 int getOrder()
          Deprecated.  
 float getPoleLat()
          Deprecated.  
 float getPoleLon()
          Deprecated.  
 int getPosition()
          Deprecated.  
 int getProjectionCenter()
          Deprecated.  
 int getResolution()
          Deprecated.  
 float getRotationangle()
          Deprecated.  
 int getScanMode()
          Deprecated.  
 int getShape()
          Deprecated.  
 String getShapeName()
          Deprecated.  
static String getShapeName(int shape)
          Deprecated.  
 int getSource()
          source of grid definition.
 float getSpLat()
          Deprecated.  
 float getSpLon()
          Deprecated.  
 int getSubdivisionsangle()
          Deprecated.  
 float getXo()
          Deprecated.  
 float getXp()
          Deprecated.  
 float getYo()
          Deprecated.  
 float getYp()
          Deprecated.  
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Grib2GridDefinitionSection

public Grib2GridDefinitionSection(RandomAccessFile raf,
                                  boolean doCheckSum)
                           throws IOException
Constructs a Grib2GridDefinitionSection object from a raf.

Parameters:
raf - RandomAccessFile
doCheckSum - calculate the checksum
Throws:
IOException - if raf contains no valid GRIB product
Method Detail

getSource

public final int getSource()
source of grid definition.

Returns:
source

getNumberPoints

public final int getNumberPoints()
Deprecated. 

number of data points .

Returns:
numberPoints

getOlon

public final int getOlon()
Deprecated. 

olon > 0 is a quasi regular grid.

Returns:
olon

getIolon

public final int getIolon()
Deprecated. 

are extreme points in the quasi regular grid.

Returns:
iolon

getOlonPoints

public final int[] getOlonPoints()
Deprecated. 

number of points in each parallel for quasi grids.

Returns:
olonPts

getMaxPts

public final int getMaxPts()
Deprecated. 

Max number of points in parallel for quasi grids.

Returns:
maxPts

getGdtn

public final int getGdtn()
Grid Definition Template Number .

Returns:
gdtn

getShape

public final int getShape()
Deprecated. 

.

Returns:
shape as a int

getShapeName

public final String getShapeName()
Deprecated. 

.

Returns:
shapeName as a String

getShapeName

public static String getShapeName(int shape)
Deprecated. 

.

Parameters:
shape - as an int
Returns:
shapeName as a String

getEarthRadius

public final float getEarthRadius()
Deprecated. 

.

Returns:
EarthRadius as a float

getMajorAxis

public final float getMajorAxis()
Deprecated. 

.

Returns:
MajorAxis as a float

getMinorAxis

public final float getMinorAxis()
Deprecated. 

.

Returns:
MinorAxis as a float

getNx

public final int getNx()
Deprecated. 

Get number of grid columns.

Returns:
number of grid columns

getNy

public final int getNy()
Deprecated. 

Get number of grid rows.

Returns:
number of grid rows.

getAngle

public final int getAngle()
Deprecated. 

.

Returns:
Angle as a int

getSubdivisionsangle

public final int getSubdivisionsangle()
Deprecated. 

.

Returns:
Subdivisionsangle as a int

getLa1

public final float getLa1()
Deprecated. 

.

Returns:
La1 as a float

getLo1

public final float getLo1()
Deprecated. 

.

Returns:
Lo1 as a float

getResolution

public final int getResolution()
Deprecated. 

.

Returns:
Resolution as a int

getLa2

public final float getLa2()
Deprecated. 

.

Returns:
La2 as a float

getLo2

public final float getLo2()
Deprecated. 

.

Returns:
Lo2 as a float

getLad

public final float getLad()
Deprecated. 

.

Returns:
Lad as a float

getLov

public final float getLov()
Deprecated. 

.

Returns:
Lov as a float

getDx

public final float getDx()
Deprecated. 

Get x-increment/distance between two grid points.

Returns:
x-increment

getDy

public final float getDy()
Deprecated. 

Get y-increment/distance between two grid points.

Returns:
y-increment

getGrid_units

public String getGrid_units()
Deprecated. 

grid units

Returns:
grid_units

getProjectionCenter

public final int getProjectionCenter()
Deprecated. 

.

Returns:
ProjectionCenter as a int

getScanMode

public final int getScanMode()
Deprecated. 

Get scan mode.

Returns:
scan mode

getLatin1

public final float getLatin1()
Deprecated. 

.

Returns:
Latin1 as a float

getLatin2

public final float getLatin2()
Deprecated. 

.

Returns:
Latin2 as a float

getSpLat

public final float getSpLat()
Deprecated. 

.

Returns:
SpLat as a float

getSpLon

public final float getSpLon()
Deprecated. 

.

Returns:
SpLon as a float

getRotationangle

public final float getRotationangle()
Deprecated. 

.

Returns:
Rotationangle as a float

getPoleLat

public final float getPoleLat()
Deprecated. 

.

Returns:
PoleLat as a float

getPoleLon

public final float getPoleLon()
Deprecated. 

.

Returns:
PoleLon as a float

getFactor

public final float getFactor()
Deprecated. 

.

Returns:
Factor as a float

getN

public final int getN()
Deprecated. 

.

Returns:
N as a int

getJ

public final float getJ()
Deprecated. 

.

Returns:
J as a float

getK

public final float getK()
Deprecated. 

.

Returns:
K as a float

getM

public final float getM()
Deprecated. 

.

Returns:
M as a float

getMethod

public final int getMethod()
Deprecated. 

.

Returns:
Method as a int

getMode

public final int getMode()
Deprecated. 

.

Returns:
Mode as a int

getLap

public final float getLap()
Deprecated. 

.

Returns:
Lap as a float

getLop

public final float getLop()
Deprecated. 

.

Returns:
Lop as a float

getXp

public final float getXp()
Deprecated. 

.

Returns:
Xp as a float

getYp

public final float getYp()
Deprecated. 

.

Returns:
Yp as a float

getXo

public final float getXo()
Deprecated. 

.

Returns:
Xo as a float

getYo

public final float getYo()
Deprecated. 

.

Returns:
Yo as a float

getAltitude

public final float getAltitude()
Deprecated. 

.

Returns:
Altitude as a float

getN2

public final int getN2()
Deprecated. 

.

Returns:
N2 as a int

getN3

public final int getN3()
Deprecated. 

.

Returns:
N3 as a int

getNi

public final int getNi()
Deprecated. 

.

Returns:
Ni as a int

getNd

public final int getNd()
Deprecated. 

.

Returns:
Nd as a int

getPosition

public final int getPosition()
Deprecated. 

.

Returns:
Position as a int

getOrder

public final int getOrder()
Deprecated. 

.

Returns:
Order as a int

getNb

public final float getNb()
Deprecated. 

.

Returns:
Nb as a float

getNr

public final float getNr()
Deprecated. 

.

Returns:
Nr as a float

getDstart

public final float getDstart()
Deprecated. 

.

Returns:
Dstart as a float

getCheckSum

public final String getCheckSum()
Deprecated. 

.

Returns:
CheckSum as a String

getGdsKey

public final int getGdsKey()
.

Returns:
gdskey as a int

getGdsVars

public Grib2GDSVariables getGdsVars()
GDS as Grib2GDSVariables

Returns:
Grib2GDSVariables GDS vars

getLength

public int getLength()

toString

public String toString()
Overrides:
toString in class Object


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