visad.jmet
Class EASECoordinateSystem
- java.lang.Object
-
- visad.CoordinateSystem
-
- visad.georef.NavigatedCoordinateSystem
-
- visad.georef.MapProjection
-
- visad.jmet.EASECoordinateSystem
-
- All Implemented Interfaces:
- java.io.Serializable
public class EASECoordinateSystem extends MapProjection
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description EASECoordinateSystem(double spacing, double row_origin, double column_origin, int number_rows, int number_columns)ctor
-
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 EASECoordinateSystemdouble[][]fromReference(double[][] tuples)convert from lat,lon to x,ydoublegetAspectRatio()return the ratio of the grid spacing between rows and columnsjava.awt.geom.Rectangle2DgetDefaultMapArea()return the bounding box for this projectionstatic voidmain(java.lang.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
-
-
-
-
Constructor Detail
-
EASECoordinateSystem
public EASECoordinateSystem(double spacing, double row_origin, double column_origin, int number_rows, int number_columns) throws VisADExceptionctor- Parameters:
spacing- is the spacing in km between grid pointsrow_origin- is the row origincolumn_origin- is the column originnumber_rows- is the number of rowsnumber_columns- is the number of columns- 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 EASECoordinateSystem- Specified by:
equalsin classCoordinateSystem- Parameters:
cs- the object in question.- Returns:
trueif and only if this instance equals cs.
-
getDefaultMapArea
public java.awt.geom.Rectangle2D getDefaultMapArea()
return the bounding box for this projection- Specified by:
getDefaultMapAreain classMapProjection- 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(java.lang.String[] args)
-
-
DMelt 3.0 © DataMelt by jWork.ORG