Class RotatedLatLon

  • All Implemented Interfaces:
    Serializable, Projection

    public class RotatedLatLon
    extends ProjectionImpl
    Grib 1 projection 10 and Grib 2 projection 1. The Rotated Latitude Longitude projection algorithms that are coded here were given by Tor Christian Bekkvik . The rotated lat/lon projection coordinates are defined in the grid file that need to be converted back to unrotated lat/lon projection coordinates before they can be displayed. The X/Y axis only makes sense in the rotated projection.
    Since:
    Nov 11, 2008
    See Also:
    Serialized Form
    • Constructor Detail

      • RotatedLatLon

        public RotatedLatLon()
        Default Constructor, needed for beans.
      • RotatedLatLon

        public RotatedLatLon​(double southPoleLat,
                             double southPoleLon,
                             double southPoleAngle)
        Constructor.
        Parameters:
        southPoleLat - in degrees
        southPoleLon - in degrees
        southPoleAngle - in degrees
    • Method Detail

      • getLonpole

        public double getLonpole()
      • getPolerotate

        public double getPolerotate()
      • getSinDlat

        public double getSinDlat()
      • 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 coordinates
        destPoint - the object to write to
        Returns:
        LatLonPoint convert to these lat/lon coordinates
      • crossSeam

        public boolean crossSeam​(ProjectionPoint pt1,
                                 ProjectionPoint pt2)
        Description copied from class: ProjectionImpl
        Does the line between these two points cross the projection "seam".
        Specified by:
        crossSeam in interface Projection
        Specified by:
        crossSeam in class ProjectionImpl
        Parameters:
        pt1 - the line goes between these two points
        pt2 - the line goes between these two points
        Returns:
        false if there is no seam
      • equals

        public boolean equals​(Object o)
        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:
        o - projection in question
        Returns:
        true if this represents the same Projection as proj.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object