ucar.visad
Class RadarGridCoordinateSystem

java.lang.Object
  extended by visad.CoordinateSystem
      extended by visad.georef.NavigatedCoordinateSystem
          extended by ucar.visad.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:
Serialized Form

Constructor Summary
RadarGridCoordinateSystem(double lat, double lon, double alt)
          Construct a new RGCS with the center point
RadarGridCoordinateSystem(EarthLocation radLocation)
          Construct a new RGCS with the center point
 
Method Summary
 boolean equals(Object obj)
          Check to see if the object in question is equal to this.
 double[][] fromReference(double[][] lonlatalt)
          Transform lat/lon/alt to lat/lon/elevation angle
 float[][] fromReference(float[][] lonlatalt)
          Transform lat/lon/alt to lat/lon/elevation angle
 double[][] toReference(double[][] lonlatelev)
          Transform lon/lat/elevation angle to lat/lon/alt
 float[][] toReference(float[][] lonlatelev)
          Transform lon/lat/elevation angle to lat/lon/alt
 
Methods inherited from class visad.georef.NavigatedCoordinateSystem
getLatitudeIndex, getLongitudeIndex
 
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

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 Detail

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