visad.jmet
Class EASECoordinateSystem

java.lang.Object
  extended by visad.CoordinateSystem
      extended by visad.georef.NavigatedCoordinateSystem
          extended by visad.georef.MapProjection
              extended by visad.jmet.EASECoordinateSystem
All Implemented Interfaces:
Serializable

public class EASECoordinateSystem
extends MapProjection

See Also:
Serialized Form

Constructor Summary
EASECoordinateSystem(double spacing, double row_origin, double column_origin, int number_rows, int number_columns)
          ctor
 
Method Summary
 boolean equals(Object cs)
          determine if the Coordinate System in question is an EASECoordinateSystem
 double[][] fromReference(double[][] tuples)
          convert from lat,lon to x,y
 double getAspectRatio()
          return the ratio of the grid spacing between rows and columns
 Rectangle2D getDefaultMapArea()
          return the bounding box for this projection
static void main(String[] args)
           
 double[][] toReference(double[][] tuples)
          convert from x,y to lat,lon
 
Methods inherited from class visad.georef.MapProjection
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder, toString
 
Methods inherited from class visad.georef.NavigatedCoordinateSystem
getLatitudeIndex, getLongitudeIndex
 
Methods inherited from class visad.CoordinateSystem
canConvert, fromReference, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EASECoordinateSystem

public EASECoordinateSystem(double spacing,
                            double row_origin,
                            double column_origin,
                            int number_rows,
                            int number_columns)
                     throws VisADException
ctor

Parameters:
spacing - is the spacing in km between grid points
row_origin - is the row origin
column_origin - is the column origin
number_rows - is the number of rows
number_columns - is the number of columns
Throws:
VisADException
Method Detail

toReference

public double[][] toReference(double[][] tuples)
                       throws VisADException
convert from x,y to lat,lon

Specified by:
toReference in class CoordinateSystem
Parameters:
tuples - contains the x,y coordinates (grid col, row)
Returns:
tuple of (lat,lon);
Throws:
VisADException - if problem with conversion.

fromReference

public double[][] fromReference(double[][] tuples)
                         throws VisADException
convert from lat,lon to x,y

Specified by:
fromReference in class CoordinateSystem
Parameters:
tuples - contains the lat,lon coordinates
Returns:
array of double values in CoordinateSystem Units.
Throws:
VisADException - if problem with conversion.

equals

public boolean equals(Object cs)
determine if the Coordinate System in question is an EASECoordinateSystem

Specified by:
equals in class CoordinateSystem
Parameters:
cs - the object in question.
Returns:
true if and only if this instance equals cs.

getDefaultMapArea

public Rectangle2D getDefaultMapArea()
return the bounding box for this projection

Specified by:
getDefaultMapArea in class MapProjection
Returns:
the bounding box of the MapProjection

getAspectRatio

public double getAspectRatio()
return the ratio of the grid spacing between rows and columns


main

public static void main(String[] args)