ucar.visad
Class ReverseCoordinateSystem

java.lang.Object
  extended by visad.CoordinateSystem
      extended by ucar.visad.ReverseCoordinateSystem
All Implemented Interfaces:
Serializable

public class ReverseCoordinateSystem
extends CoordinateSystem

A CoordinateSystem to transform between a Tuple and a reference in reverse order (eg:, (Latitude, Longitude) <-> (Longitude, Latitude)

See Also:
Serialized Form

Constructor Summary
ReverseCoordinateSystem(RealTupleType reference)
          Construct a coordinate system with reverse reference specified
 
Method Summary
 boolean equals(Object cs)
          See if the Object in question is equal to this ReverseCoordinateSystem
 double[][] fromReference(double[][] revValues)
          Convert logrithmic values to values.
 float[][] fromReference(float[][] revValues)
          Convert logrithmic values to values.
 double[][] toReference(double[][] values)
          Convert values to reverse values.
 float[][] toReference(float[][] values)
          Convert values to reverse values.
 
Methods inherited from class visad.CoordinateSystem
canConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, 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

ReverseCoordinateSystem

public ReverseCoordinateSystem(RealTupleType reference)
                        throws VisADException
Construct a coordinate system with reverse reference specified

Parameters:
reference - MathType of values
Throws:
VisADException - problem instantiating the CS
Method Detail

toReference

public double[][] toReference(double[][] values)
                       throws VisADException
Convert values to reverse values.

Specified by:
toReference in class CoordinateSystem
Parameters:
values - array of values
Returns:
array of reverse of values
Throws:
VisADException - values dimension not the same as CS dimension

fromReference

public double[][] fromReference(double[][] revValues)
                         throws VisADException
Convert logrithmic values to values.

Specified by:
fromReference in class CoordinateSystem
Parameters:
revValues - array of reverse values
Returns:
array of values
Throws:
VisADException - revValues dimension not the same as CS dimension

toReference

public float[][] toReference(float[][] values)
                      throws VisADException
Convert values to reverse values.

Overrides:
toReference in class CoordinateSystem
Parameters:
values - array of values
Returns:
array of reverse of values
Throws:
VisADException - values dimension not the same as CS dimension

fromReference

public float[][] fromReference(float[][] revValues)
                        throws VisADException
Convert logrithmic values to values.

Overrides:
fromReference in class CoordinateSystem
Parameters:
revValues - array of reverse values
Returns:
array of values
Throws:
VisADException - revValues dimension not the same as CS dimension

equals

public boolean equals(Object cs)
See if the Object in question is equal to this ReverseCoordinateSystem

Specified by:
equals in class CoordinateSystem
Parameters:
cs - Object in question
Returns:
true if cs's reference tuples and base is equal to this's