visad.jmet
Class AlbersCoordinateSystem
- java.lang.Object
-
- visad.CoordinateSystem
-
- visad.jmet.AlbersCoordinateSystem
-
- All Implemented Interfaces:
- java.io.Serializable
public class AlbersCoordinateSystem extends CoordinateSystem
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description AlbersCoordinateSystem(double la0, double lo0, double p1, double p2, double false_easting, double false_northing)Albers Equal Area projection
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object cs)determine if the Coordinate System in question is an AlbersCoordinateSystemdouble[][]fromReference(double[][] tuples)convert from lat,lon to x,ystatic voidmain(java.lang.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
-
-
-
-
Constructor Detail
-
AlbersCoordinateSystem
public AlbersCoordinateSystem(double la0, double lo0, double p1, double p2, double false_easting, double false_northing) throws VisADExceptionAlbers 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 VisADExceptionconvert from x,y to lat,lon- Specified by:
toReferencein classCoordinateSystem- 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 VisADExceptionconvert from lat,lon to x,y- Specified by:
fromReferencein classCoordinateSystem- 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(java.lang.Object cs)
determine if the Coordinate System in question is an AlbersCoordinateSystem- Specified by:
equalsin classCoordinateSystem- Parameters:
cs- the object in question.- Returns:
trueif and only if this instance equals cs.
-
main
public static void main(java.lang.String[] args)
-
-
DMelt 3.0 © DataMelt by jWork.ORG