ucar.nc2.iosp.mcidas
Class McGridDefRecord

java.lang.Object
  extended by ucar.nc2.iosp.grid.GridDefRecord
      extended by ucar.nc2.iosp.mcidas.McGridDefRecord

public class McGridDefRecord
extends GridDefRecord

Class to hold the grid navigation information.

Version:
$Revision: 1.3 $
Author:
Unidata Development Team

Field Summary
 
Fields inherited from class ucar.nc2.iosp.grid.GridDefRecord
DX, DY, GDS_KEY, GRID_SHAPE_CODE, GRID_TYPE, LA1, LA2, LAD, LATIN1, LATIN2, LO1, LO2, LOV, MAJOR_AXIS_EARTH, MINOR_AXIS_EARTH, NX, NY, PROJ, RADIUS_SPHERICAL_EARTH, RESOLUTION, WIND_FLAG
 
Constructor Summary
McGridDefRecord()
          Create a new grid nav block
McGridDefRecord(int[] words)
          Create a new grid nav block with the values
 
Method Summary
 boolean equals(java.lang.Object o)
          Check for equality
 java.lang.String getGroupName()
          Get a short name for this GDSKey for the netCDF group.
 java.lang.String getProjName(int type)
          Get the name for the projection type
 int hashCode()
          Get the hashcode
 void setValues(int[] values)
          Set the grid nav block values
 java.lang.String toString()
          Print out the navibation block so it looks something like this:
 
Methods inherited from class ucar.nc2.iosp.grid.GridDefRecord
addParam, getKeys, getParam, readDouble
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

McGridDefRecord

public McGridDefRecord()
Create a new grid nav block


McGridDefRecord

public McGridDefRecord(int[] words)
Create a new grid nav block with the values

Parameters:
words - analysis block values
Method Detail

setValues

public void setValues(int[] values)
Set the grid nav block values

Parameters:
values - the raw values

toString

public java.lang.String toString()
Print out the navibation block so it looks something like this:
        PROJECTION:          LCC
        ANGLES:                25.0   -95.0    25.0
        GRID SIZE:           93  65
        LL CORNER:              12.19   -133.46
        UR CORNER:              57.29    -49.38
 

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this.

equals

public boolean equals(java.lang.Object o)
Check for equality

Overrides:
equals in class java.lang.Object
Parameters:
o - object to compare
Returns:
true if equal

hashCode

public int hashCode()
Get the hashcode

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode

getGroupName

public java.lang.String getGroupName()
Get a short name for this GDSKey for the netCDF group. Subclasses should implement as a short description

Specified by:
getGroupName in class GridDefRecord
Returns:
short name

getProjName

public java.lang.String getProjName(int type)
Get the name for the projection type

Parameters:
type - the projection type
Returns:
a String name for the type