ucar.grib.grib1
Class Grib1GridDefinitionSection

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

public class Grib1GridDefinitionSection
extends Object

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


Field Summary
protected  String checksum
          checksum value for this gds.
protected  double dx
          x-distance between two grid points can be delta-Lon or delta x.
protected  double dy
          y-distance of two grid points can be delta-Lat or delta y.
protected  int gdskey
           
protected  String grid_units
          units of the dx and dy variables
protected  double lat1
          Latitude of grid start point.
protected  double lat2
          Latitude of grid last point.
protected  double lon1
          Longitude of grid start point.
protected  double lon2
          Longitude of grid last point.
protected  double lov
          orientation of the grid.
protected  String name
          Grid name.
protected  int[] numPV
          _more_
protected  int nx
          Number of grid columns.
protected  int ny
          Number of grid rows.
protected  int resolution
          Resolution of grid (See table 7).
protected  int scan
          Scanning mode (See table 8).
protected  int type
          Type of grid (See table 6)ie 1 == Mercator Projection Grid.
 
Constructor Summary
Grib1GridDefinitionSection()
          constructor
Grib1GridDefinitionSection(RandomAccessFile raf)
          Constructs a Grib1GridDefinitionSection object from a raf.
 
Method Summary
 double getAngle()
          Deprecated.  
 String getCheckSum()
          Deprecated.  
 double getDx()
          Deprecated.  
 double getDy()
          Deprecated.  
 int getGdsKey()
          .
 Grib1GDSVariables getGdsVars()
          GDS as Grib2GDSVariables
 int getGdtn()
          Deprecated.  
 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.  
 String getName()
          Deprecated.  
static 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.  
 String getShapeName()
          Deprecated.  
static String getShapeName(int code)
          Deprecated.  
static double getShapeRadius()
          Deprecated.  
 double getSpLat()
          Deprecated.  
 double getSpLon()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numPV

protected int[] numPV
_more_


type

protected int type
Type of grid (See table 6)ie 1 == Mercator Projection Grid.


name

protected String name
Grid name.


nx

protected int nx
Number of grid columns. (Also Ni).


ny

protected int ny
Number of grid rows. (Also Nj).


lat1

protected double lat1
Latitude of grid start point.


lon1

protected double lon1
Longitude of grid start point.


lat2

protected double lat2
Latitude of grid last point.


lon2

protected double lon2
Longitude of grid last point.


lov

protected double lov
orientation of the grid.


resolution

protected int resolution
Resolution of grid (See table 7).


dx

protected double dx
x-distance between two grid points can be delta-Lon or delta x.


dy

protected double dy
y-distance of two grid points can be delta-Lat or delta y.


grid_units

protected String grid_units
units of the dx and dy variables


scan

protected int scan
Scanning mode (See table 8).


checksum

protected String checksum
checksum value for this gds.


gdskey

protected int gdskey
Constructor Detail

Grib1GridDefinitionSection

public Grib1GridDefinitionSection()
constructor


Grib1GridDefinitionSection

public Grib1GridDefinitionSection(RandomAccessFile raf)
                           throws IOException,
                                  NoValidGribException
Constructs a Grib1GridDefinitionSection object from a raf.

Parameters:
raf - RandomAccessFile with GDS content
Throws:
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 String getName()
Deprecated. 

Get Grid name.

Returns:
name

getName

public static 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 String getShapeName()
Deprecated. 

shape of grid.

Returns:
grid shape name

getShapeName

public static 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 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 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


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