ucar.unidata.view.geoloc
Class TransectDisplay.TransectCoordinateSystem

java.lang.Object
  extended by visad.CoordinateSystem
      extended by ucar.unidata.view.geoloc.TransectDisplay.TransectCoordinateSystem
All Implemented Interfaces:
Serializable
Enclosing class:
TransectDisplay

protected class TransectDisplay.TransectCoordinateSystem
extends CoordinateSystem

Class for converting from lat/lon/alt to xyz

Version:
$Revision: 1.41 $
Author:
IDV Development Team
See Also:
Serialized Form

Constructor Summary
TransectDisplay.TransectCoordinateSystem(Gridded2DSet line)
          Create a new CS
 
Method Summary
 boolean equals(Object o)
          See if this is equal to the object in question.
 double[][] fromReference(double[][] xyz)
          Transform display XYZ values to latitude/longitude/altitude
 float[][] fromReference(float[][] xyz)
          Transform display XYZ values to latitude/longitude/altitude
 double[][] toReference(double[][] latlonalt)
          Transform latitude/longitude/altitude value to XYZ
 float[][] toReference(float[][] latlonalt)
          Transform latitude/longitude/altitude value to XYZ
 
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

TransectDisplay.TransectCoordinateSystem

public TransectDisplay.TransectCoordinateSystem(Gridded2DSet line)
                                         throws VisADException
Create a new CS

Parameters:
line - line of lat/lon points
Throws:
VisADException - problem creating the CS
Method Detail

toReference

public float[][] toReference(float[][] latlonalt)
                      throws VisADException
Transform latitude/longitude/altitude value to XYZ

Overrides:
toReference in class CoordinateSystem
Parameters:
latlonalt - array of latitude, longitude, altitude values
Returns:
array of display xyz values.
Throws:
VisADException - can't create the necessary VisAD object

toReference

public double[][] toReference(double[][] latlonalt)
                       throws VisADException
Transform latitude/longitude/altitude value to XYZ

Specified by:
toReference in class CoordinateSystem
Parameters:
latlonalt - array of latitude, longitude, altitude values
Returns:
array of display xyz values.
Throws:
VisADException - can't create the necessary VisAD object

fromReference

public double[][] fromReference(double[][] xyz)
                         throws VisADException
Transform display XYZ values to latitude/longitude/altitude

Specified by:
fromReference in class CoordinateSystem
Parameters:
xyz - array of Display.DisplaySpatialCartesianTuple XYZ values
Returns:
array of display lat/lon/alt values.
Throws:
VisADException - can't create the necessary VisAD object

fromReference

public float[][] fromReference(float[][] xyz)
                        throws VisADException
Transform display XYZ values to latitude/longitude/altitude

Overrides:
fromReference in class CoordinateSystem
Parameters:
xyz - array of Display.DisplaySpatialCartesianTuple XYZ values
Returns:
array of display lat/lon/alt values.
Throws:
VisADException - can't create the necessary VisAD object

equals

public boolean equals(Object o)
See if this is equal to the object in question.

Specified by:
equals in class CoordinateSystem
Parameters:
o - object in question.
Returns:
true if they are equal. The two objects are equal if their transect are equal.