ucar.grib.grib1
Class Grib1GridDefinitionSection

java.lang.Object
  extended by ucar.grib.grib1.Grib1GridDefinitionSection
Direct Known Subclasses:
Grib1Grid

public class Grib1GridDefinitionSection
extends java.lang.Object

A class that represents the grid definition section (GDS) of a GRIB record.


Constructor Summary
Grib1GridDefinitionSection()
          constructor
Grib1GridDefinitionSection(ucar.unidata.io.RandomAccessFile raf)
          Constructs a Grib1GridDefinitionSection object from a raf.
 
Method Summary
 double getAngle()
          Deprecated.  
 java.lang.String getCheckSum()
          Deprecated.  
 double getDx()
          Deprecated.  
 double getDy()
          Deprecated.  
 int getGdsKey()
          .
 Grib1GDSVariables getGdsVars()
          GDS as Grib2GDSVariables
 int getGdtn()
          Deprecated.  
 java.lang.String getGrid_units()
          Deprecated.  
 int getGridType()
          Deprecated.  
 boolean getIsThin()
          Deprecated.  
 double getLa1()
          Deprecated.  
 double getLa2()
          Deprecated.  
 double getLad()
          Deprecated.  
 double getLatin()
          Deprecated.  
 double getLatin1()
          Deprecated.  
 double getLatin2()
          Deprecated.  
 int getLength()
          Deprecated.  
 double getLo1()
          Deprecated.  
 double getLo2()
          Deprecated.  
 double getLov()
          Deprecated.  
 java.lang.String getName()
          Deprecated.  
static java.lang.String getName(int type)
          Deprecated.  
 double getNp()
          Deprecated.  
 int[] getNumPV()
          Deprecated.  
 int getNx()
          Deprecated.  
 int getNy()
          Deprecated.  
 int getProjectionCenter()
          Deprecated.  
 int getResolution()
          Deprecated.  
 int getScanMode()
          Deprecated.  
 int getShape()
          Deprecated.  
static double getShapeMajorAxis()
          Deprecated.  
static double getShapeMinorAxis()
          Deprecated.  
 java.lang.String getShapeName()
          Deprecated.  
static java.lang.String getShapeName(int code)
          Deprecated.  
static double getShapeRadius()
          Deprecated.  
 double getSpLat()
          Deprecated.  
 double getSpLon()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1GridDefinitionSection

public Grib1GridDefinitionSection()
constructor


Grib1GridDefinitionSection

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

Parameters:
raf - RandomAccessFile with GDS content
Throws:
java.io.IOException - if RandomAccessFile has error.
NoValidGribException - if raf contains no valid GRIB info
Method Detail

getLength

public final int getLength()
Deprecated. 

Get length in bytes of this section.

Returns:
length in bytes of this section

getIsThin

public final boolean getIsThin()
Deprecated. 

is this a thin grid.

Returns:
isThin grid boolean

getNumPV

public final int[] getNumPV()
Deprecated. 

Returns:
numPV int[]

getGridType

public final int getGridType()
Deprecated. 

Get type of grid.

Returns:
type of grid

getGdtn

public final int getGdtn()
Deprecated. 

Get type of grid.

Returns:
type of grid

getName

public final java.lang.String getName()
Deprecated. 

Get Grid name.

Returns:
name

getName

public static java.lang.String getName(int type)
Deprecated. 

Get Grid name.

Parameters:
type -
Returns:
name

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.

getLa1

public final double getLa1()
Deprecated. 

Get y-coordinate/latitude of grid start point.

Returns:
y-coordinate/latitude of grid start point

getLo1

public final double getLo1()
Deprecated. 

Get x-coordinate/longitude of grid start point.

Returns:
x-coordinate/longitude of grid start point

getResolution

public final int getResolution()
Deprecated. 

Get grid resolution.

Returns:
resolution

getShape

public final int getShape()
Deprecated. 

grid shape spherical or oblate.

Returns:
int grid shape code 1 or 3

getShapeName

public final java.lang.String getShapeName()
Deprecated. 

shape of grid.

Returns:
grid shape name

getShapeName

public static java.lang.String getShapeName(int code)
Deprecated. 

shape of grid.

Parameters:
code - grid shape code
Returns:
String grid shape name

getShapeRadius

public static final double getShapeRadius()
Deprecated. 

Grib 1 has static radius.

Returns:
ShapeRadius of 6367.47

getShapeMajorAxis

public static final double getShapeMajorAxis()
Deprecated. 

Grib 1 has static MajorAxis.

Returns:
ShapeMajorAxis of 6378.160

getShapeMinorAxis

public static final double getShapeMinorAxis()
Deprecated. 

Grib 1 has static MinorAxis.

Returns:
ShapeMinorAxis of 6356.775

getLa2

public final double getLa2()
Deprecated. 

Get y-coordinate/latitude of grid end point.

Returns:
y-coordinate/latitude of grid end point

getLo2

public final double getLo2()
Deprecated. 

Get x-coordinate/longitude of grid end point.

Returns:
x-coordinate/longitude of grid end point

getLov

public final double getLov()
Deprecated. 

orientation of the grid.

Returns:
lov

getLad

public final double getLad()
Deprecated. 

not defined in Grib1.

Returns:
lad

getDx

public final double getDx()
Deprecated. 

Get x-increment/distance between two grid points.

Returns:
x-increment

getDy

public final double getDy()
Deprecated. 

Get y-increment/distance between two grid points.

Returns:
y-increment

getGrid_units

public java.lang.String getGrid_units()
Deprecated. 

grid units

Returns:
grid_units

getNp

public final double getNp()
Deprecated. 

Get parallels between a pole and the equator.

Returns:
np

getScanMode

public final int getScanMode()
Deprecated. 

Get scan mode.

Returns:
scan mode

getProjectionCenter

public final int getProjectionCenter()
Deprecated. 

Get Projection Center flag - see note 5 of Table D.

Returns:
Projection Center flag

getLatin

public final double getLatin()
Deprecated. 

Get first latitude from the pole at which cylinder cuts spherical earth - see note 8 of Table D.

Returns:
latitude

getLatin1

public final double getLatin1()
Deprecated. 

Get first latitude from the pole at which cone cuts spherical earth - see note 8 of Table D.

Returns:
latitude of south pole

getLatin2

public final double getLatin2()
Deprecated. 

Get second latitude from the pole at which cone cuts spherical earth - see note 8 of Table D.

Returns:
latitude of south pole

getSpLat

public final double getSpLat()
Deprecated. 

Get latitude of south pole.

Returns:
latitude

getSpLon

public final double getSpLon()
Deprecated. 

Get longitude of south pole of a rotated latitude/longitude grid.

Returns:
longitude

getAngle

public final double getAngle()
Deprecated. 

Get angle of rotation.

Returns:
angle

getCheckSum

public final java.lang.String getCheckSum()
Deprecated. 

checksum of this gds, used for comparisons.

Returns:
string representation of this GDS checksum

getGdsKey

public final int getGdsKey()
.

Returns:
gdskey as a int

getGdsVars

public Grib1GDSVariables getGdsVars()
GDS as Grib2GDSVariables

Returns:
Grib2GDSVariables GDS vars