ucar.visad
Class RadarMapProjection

java.lang.Object
  extended by visad.CoordinateSystem
      extended by visad.georef.NavigatedCoordinateSystem
          extended by visad.georef.MapProjection
              extended by visad.data.mcidas.AREACoordinateSystem
                  extended by ucar.visad.RadarMapProjection
All Implemented Interfaces:
Serializable, XmlPersistable

public class RadarMapProjection
extends AREACoordinateSystem
implements XmlPersistable

A map projection uses a McIDAS navigation.

Version:
$Revision: 1.8 $ $Date: 2007/06/22 13:37:52 $
Author:
MetApps Development Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class visad.data.mcidas.AREACoordinateSystem
anav
 
Constructor Summary
RadarMapProjection(double lat, double lon)
          Create a RadarMapProjection centered on the lat/lon given.
RadarMapProjection(double lat, double lon, int width, int height)
          Create a RadarMapProjection centered on the lat/lon and size given.
RadarMapProjection(LatLonPoint ll)
          Create a RadarMapProjection centered on the lat/lon given.
RadarMapProjection(LatLonPoint ll, int width, int height)
          Create a RadarMapProjection centered on the lat/lon and size given
 
Method Summary
 Element createElement(XmlEncoder encoder)
          Create the XML to represent this object.
 boolean initFromXml(XmlEncoder encoder, Element node)
          Do nothing, return true to tell the encoder that it is ok to process any methods or properties.
 String toString()
          Get a String representation of this projection.
 
Methods inherited from class visad.data.mcidas.AREACoordinateSystem
equals, fromReference, fromReference, getAreaNav, getAuxBlock, getDefaultMapArea, getDirBlock, getNavBlock, getSubpoint, getUseSpline, init, toReference, toReference
 
Methods inherited from class visad.georef.MapProjection
getCenterLatLon, getLatLon, isLatLonOrder, isXYOrder
 
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, wait, wait, wait
 

Constructor Detail

RadarMapProjection

public RadarMapProjection(LatLonPoint ll)
                   throws VisADException
Create a RadarMapProjection centered on the lat/lon given.

Parameters:
ll - LatLonPoint for center point
Throws:
VisADException - unable to create the projection

RadarMapProjection

public RadarMapProjection(LatLonPoint ll,
                          int width,
                          int height)
                   throws VisADException
Create a RadarMapProjection centered on the lat/lon and size given

Parameters:
ll - LatLonPoint for center point
height - height of the image (pixels)
width - height of the image (pixels)
Throws:
VisADException - unable to create the projection

RadarMapProjection

public RadarMapProjection(double lat,
                          double lon)
                   throws VisADException
Create a RadarMapProjection centered on the lat/lon given. Use the default size.

Parameters:
lat - latitude of the center point
lon - longitude of the center point
Throws:
VisADException

RadarMapProjection

public RadarMapProjection(double lat,
                          double lon,
                          int width,
                          int height)
                   throws VisADException
Create a RadarMapProjection centered on the lat/lon and size given.

Parameters:
lat - latitude of the center point
lon - longitude of the center point
height - height of the image (pixels)
width - height of the image (pixels)
Throws:
VisADException - unable to create the projection
Method Detail

toString

public String toString()
Get a String representation of this projection.

Overrides:
toString in class AREACoordinateSystem
Returns:
string

createElement

public Element createElement(XmlEncoder encoder)
Create the XML to represent this object.

Specified by:
createElement in interface XmlPersistable
Parameters:
encoder - encoder to use
Returns:
Element that represents this object.

initFromXml

public boolean initFromXml(XmlEncoder encoder,
                           Element node)
Do nothing, return true to tell the encoder that it is ok to process any methods or properties.

Specified by:
initFromXml in interface XmlPersistable
Parameters:
encoder - encoder to use
node - node to process
Returns:
true