Package ucar.visad

Class RadarGridCoordinateSystem

All Implemented Interfaces:
Serializable

public class RadarGridCoordinateSystem extends NavigatedCoordinateSystem
Class to transform lon/lat/elevation angle to lon/lat/altitude
Version:
$Revision: 1.5 $ $Date: 2005/05/13 18:34:03 $
Author:
MetApps Development Team
See Also:
  • Constructor Details

    • RadarGridCoordinateSystem

      public RadarGridCoordinateSystem(EarthLocation radLocation) throws VisADException
      Construct a new RGCS with the center point
      Parameters:
      radLocation - radar location (lat/lon/alt)
      Throws:
      VisADException - couldn't create necessary VisAD objects
    • RadarGridCoordinateSystem

      public RadarGridCoordinateSystem(double lat, double lon, double alt) throws VisADException
      Construct a new RGCS with the center point
      Parameters:
      lat - radar latitude
      lon - radar longitude
      alt - radar altitude
      Throws:
      VisADException - couldn't create necessary VisAD objects
  • Method Details

    • toReference

      public double[][] toReference(double[][] lonlatelev) throws VisADException
      Transform lon/lat/elevation angle to lat/lon/alt
      Specified by:
      toReference in class CoordinateSystem
      Parameters:
      lonlatelev - lon/lat/elevation angle data
      Returns:
      data as lat/lon/alt
      Throws:
      VisADException - bad array size or transformation problem
    • fromReference

      public double[][] fromReference(double[][] lonlatalt) throws VisADException
      Transform lat/lon/alt to lat/lon/elevation angle
      Specified by:
      fromReference in class CoordinateSystem
      Parameters:
      lonlatalt - lat/lon/alt values
      Returns:
      transformed lon/lat/elevation
      Throws:
      VisADException - bad array size or transformation problem
    • toReference

      public float[][] toReference(float[][] lonlatelev) throws VisADException
      Transform lon/lat/elevation angle to lat/lon/alt
      Overrides:
      toReference in class CoordinateSystem
      Parameters:
      lonlatelev - lon/lat/elevation angle data
      Returns:
      data as lat/lon/alt
      Throws:
      VisADException - bad array size or transformation problem
    • fromReference

      public float[][] fromReference(float[][] lonlatalt) throws VisADException
      Transform lat/lon/alt to lat/lon/elevation angle
      Overrides:
      fromReference in class CoordinateSystem
      Parameters:
      lonlatalt - lat/lon/alt values
      Returns:
      transformed lon/lat/elevation
      Throws:
      VisADException - bad array size or transformation problem
    • equals

      public boolean equals(Object obj)
      Check to see if the object in question is equal to this.
      Specified by:
      equals in class CoordinateSystem
      Parameters:
      obj - object in question
      Returns:
      true if they are equal