Class TransectDisplay.TransectCoordinateSystem

java.lang.Object
visad.CoordinateSystem
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:
  • Constructor Details

    • TransectCoordinateSystem

      public TransectCoordinateSystem(Gridded2DSet line) throws VisADException
      Create a new CS
      Parameters:
      line - line of lat/lon points
      Throws:
      VisADException - problem creating the CS
  • Method Details

    • 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.