ucar.nc2.iosp.mcidas
Class McGridDefRecord

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

public class McGridDefRecord
extends ucar.grid.GridDefRecord

Class to hold the grid navigation information.

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

Field Summary
 
Fields inherited from class ucar.grid.GridDefRecord
ANGLE, BASICANGLE, debug, DX, DY, GDS_KEY, GRID_NAME, GRID_SHAPE, GRID_SHAPE_CODE, GRID_TYPE, GRID_UNITS, J, K, LA1, LA2, LAD, LAP, LATIN, LATIN1, LATIN2, LO1, LO2, LOP, LOV, M, MAJOR_AXIS_EARTH, METHODNORM, MINOR_AXIS_EARTH, MODEORDER, NP, NPPROJ, NR, NUMBERPARALLELS, NX, NY, PLAT, PLON, PROJ, QUASI, RADIUS_SPHERICAL_EARTH, RESOLUTION, ROTATIONANGLE, SPLAT, SPLON, STRETCHINGFACTOR, UNDEFINED, WIND_FLAG, XO, XP, YO, YP
 
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.grid.GridDefRecord
addParam, addParam, addParam, getDouble, getInt, getKeys, getParam, getParamDouble, getParamInt, getParamsValues, 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 ucar.grid.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