visad.jmet
Class AlbersCoordinateSystem

java.lang.Object
  extended by visad.CoordinateSystem
      extended by visad.jmet.AlbersCoordinateSystem
All Implemented Interfaces:
Serializable

public class AlbersCoordinateSystem
extends CoordinateSystem

See Also:
Serialized Form

Constructor Summary
AlbersCoordinateSystem(double la0, double lo0, double p1, double p2, double false_easting, double false_northing)
          Albers Equal Area projection
 
Method Summary
 boolean equals(Object cs)
          determine if the Coordinate System in question is an AlbersCoordinateSystem
 double[][] fromReference(double[][] tuples)
          convert from lat,lon to x,y
static void main(String[] args)
           
 double[][] toReference(double[][] tuples)
          convert from x,y to lat,lon
 
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, toString, wait, wait, wait
 

Constructor Detail

AlbersCoordinateSystem

public AlbersCoordinateSystem(double la0,
                              double lo0,
                              double p1,
                              double p2,
                              double false_easting,
                              double false_northing)
                       throws VisADException
Albers Equal Area projection

Parameters:
la0 - is the latitude of the origin (deg)
lo0 - is the longitude of the origin (deg)
p1 - is latitude of the first parallel (deg)
p2 - is latitude of the second parallel (deg)
false_easting - is the value added to the x map coordinate so that x is returned positive (m) -- may be zero...
false_northing - is the value added to the y map coordinate so that y is returned positive (m) -- may be zero... equations taken from
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 AlbersCoordinateSystem

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

main

public static void main(String[] args)