Package ucar.visad
Class ReverseCoordinateSystem
java.lang.Object
visad.CoordinateSystem
ucar.visad.ReverseCoordinateSystem
- All Implemented Interfaces:
Serializable
A CoordinateSystem to transform between a Tuple and a reference in
reverse order (eg:, (Latitude, Longitude) invalid input: '<'-> (Longitude, Latitude)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReverseCoordinateSystem
(RealTupleType reference) Construct a coordinate system with reverse reference specified -
Method Summary
Modifier and TypeMethodDescriptionboolean
See if the Object in question is equal to this ReverseCoordinateSystemdouble[][]
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
-
Constructor Details
-
ReverseCoordinateSystem
Construct a coordinate system with reverse reference specified- Parameters:
reference
- MathType of values- Throws:
VisADException
- problem instantiating the CS
-
-
Method Details
-
toReference
Convert values to reverse values.- Specified by:
toReference
in classCoordinateSystem
- Parameters:
values
- array of values- Returns:
- array of reverse of values
- Throws:
VisADException
- values dimension not the same as CS dimension
-
fromReference
Convert logrithmic values to values.- Specified by:
fromReference
in classCoordinateSystem
- Parameters:
revValues
- array of reverse values- Returns:
- array of values
- Throws:
VisADException
- revValues dimension not the same as CS dimension
-
toReference
Convert values to reverse values.- Overrides:
toReference
in classCoordinateSystem
- Parameters:
values
- array of values- Returns:
- array of reverse of values
- Throws:
VisADException
- values dimension not the same as CS dimension
-
fromReference
Convert logrithmic values to values.- Overrides:
fromReference
in classCoordinateSystem
- Parameters:
revValues
- array of reverse values- Returns:
- array of values
- Throws:
VisADException
- revValues dimension not the same as CS dimension
-
equals
See if the Object in question is equal to this ReverseCoordinateSystem- Specified by:
equals
in classCoordinateSystem
- Parameters:
cs
- Object in question- Returns:
- true if cs's reference tuples and base is equal to this's
-