visad.data.vis5d
Class Vis5DCoordinateSystem

java.lang.Object
  extended by visad.CoordinateSystem
      extended by visad.georef.NavigatedCoordinateSystem
          extended by visad.georef.MapProjection
              extended by visad.data.vis5d.Vis5DCoordinateSystem
All Implemented Interfaces:
java.io.Serializable

public class Vis5DCoordinateSystem
extends MapProjection

Vis5DCoordinateSystem is the VisAD class for coordinate systems for ( row, col ).

See Also:
Serialized Form

Constructor Summary
Vis5DCoordinateSystem(int Projection, double[] projargs, double Nr, double Nc)
           
 
Method Summary
 boolean equals(java.lang.Object cs)
          check for equality of CoordinateSystem objects; must test for cs == null
 double[][] fromReference(double[][] latlon)
          convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array
 double getColumns()
          Get the number of Columns
 java.awt.geom.Rectangle2D getDefaultMapArea()
          Get the bounds for this image
 int getProjection()
          Get the Projection type
 double[] getProjectionParams()
          Get the projection args
 double getRows()
          Get the number of Rows
 boolean isXYOrder()
          Override from super class since toRef and fromRef use rowcol (yx) order instead of colrow (xy) order.
static void main(java.lang.String[] args)
           
 double[][] toReference(double[][] rowcol)
          convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array
 
Methods inherited from class visad.georef.MapProjection
isLatLonOrder, toString
 
Methods inherited from class visad.georef.NavigatedCoordinateSystem
getLatitudeIndex, getLongitudeIndex
 
Methods inherited from class visad.CoordinateSystem
canConvert, checkTable, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vis5DCoordinateSystem

public Vis5DCoordinateSystem(int Projection,
                             double[] projargs,
                             double Nr,
                             double Nc)
                      throws VisADException
Throws:
VisADException
Method Detail

getDefaultMapArea

public java.awt.geom.Rectangle2D getDefaultMapArea()
Get the bounds for this image

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

getProjection

public int getProjection()
Get the Projection type


getRows

public double getRows()
Get the number of Rows


getColumns

public double getColumns()
Get the number of Columns


getProjectionParams

public double[] getProjectionParams()
Get the projection args


isXYOrder

public boolean isXYOrder()
Override from super class since toRef and fromRef use rowcol (yx) order instead of colrow (xy) order.

Overrides:
isXYOrder in class MapProjection
Returns:
false

toReference

public double[][] toReference(double[][] rowcol)
                       throws VisADException
Description copied from class: CoordinateSystem
convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array

Specified by:
toReference in class CoordinateSystem
Throws:
VisADException

fromReference

public double[][] fromReference(double[][] latlon)
                         throws VisADException
Description copied from class: CoordinateSystem
convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array

Specified by:
fromReference in class CoordinateSystem
Throws:
VisADException

equals

public boolean equals(java.lang.Object cs)
Description copied from class: CoordinateSystem
check for equality of CoordinateSystem objects; must test for cs == null

Specified by:
equals in class CoordinateSystem

main

public static void main(java.lang.String[] args)
                 throws VisADException
Throws:
VisADException