ucar.unidata.geoloc.projection
Class RotatedLatLon
java.lang.Object
ucar.unidata.geoloc.ProjectionImpl
ucar.unidata.geoloc.projection.RotatedLatLon
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Projection
public class RotatedLatLon
- extends ProjectionImpl
Grib 1 projection 10 and Grib 2 projection 1.
The Rotatated Latitude Longitude projection algorithms that are coded
here were given by Tor Christian Bekkvik . The rotated
lat/lon projection corrdinates are definded in the grid file that
need to be converted back to unrotated lat/lon projection corrdinates
before they can be displayed. The X/Y axis only make sense in the rotated
projection.
- Since:
- Nov 11, 2008
- Author:
- rkambic, Tor Christian Bekkvik
- See Also:
- Serialized Form
Constructor Summary |
RotatedLatLon()
Default Constructor, needed for beans. |
RotatedLatLon(double southPoleLat,
double southPoleLon,
double southPoleAngle)
Constructor. |
Methods inherited from class ucar.unidata.geoloc.ProjectionImpl |
clone, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getLatLonBoundingBox, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, setDefaultMapArea, setName, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
RotatedLatLon
public RotatedLatLon()
- Default Constructor, needed for beans.
RotatedLatLon
public RotatedLatLon(double southPoleLat,
double southPoleLon,
double southPoleAngle)
- Constructor.
- Parameters:
southPoleLat
- southPoleLon
- southPoleAngle
-
constructCopy
public ProjectionImpl constructCopy()
- copy constructor - avoid clone !!
- Specified by:
constructCopy
in class ProjectionImpl
- Returns:
- a copy of this Projection
paramsToString
public java.lang.String paramsToString()
- returns constructor params as a String
- Specified by:
paramsToString
in interface Projection
- Specified by:
paramsToString
in class ProjectionImpl
- Returns:
- String
latLonToProj
public ProjectionPoint latLonToProj(LatLonPoint latlon,
ProjectionPointImpl destPoint)
- Transform a "real" longitude and latitude into the rotated longitude (X) and
rotated latitude (Y).
- Specified by:
latLonToProj
in interface Projection
- Specified by:
latLonToProj
in class ProjectionImpl
- Parameters:
latlon
- convert from these lat, lon coordinatesdestPoint
- the object to write to
- Returns:
- the given destPoint
projToLatLon
public LatLonPoint projToLatLon(ProjectionPoint ppt,
LatLonPointImpl destPoint)
- Transform a rotated longitude (X) and rotated latitude (Y) into a "real"
longitude-latitude pair.
- Specified by:
projToLatLon
in interface Projection
- Specified by:
projToLatLon
in class ProjectionImpl
- Parameters:
ppt
- convert from these projection coordinatesdestPoint
- the object to write to
- Returns:
- LatLonPoint convert to these lat/lon coordinates
crossSeam
public boolean crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
- Unknown usage
- Specified by:
crossSeam
in interface Projection
- Specified by:
crossSeam
in class ProjectionImpl
- Parameters:
pt1
- pt2
-
- Returns:
- false alwaya
equals
public boolean equals(java.lang.Object proj)
- Description copied from class:
ProjectionImpl
- Returns true if this represents the same Projection as proj.
- Specified by:
equals
in interface Projection
- Specified by:
equals
in class ProjectionImpl
- Parameters:
proj
- projection in question
- Returns:
- true if this represents the same Projection as proj.
main
public static void main(java.lang.String[] args)