earthkit.geo.rotate.unrotate¶
- earthkit.geo.rotate.unrotate(lat, lon, south_pole_lat, south_pole_lon)¶
Unrotate geographical coordinates on a sphere.
- Parameters:
lat (
ndarray) – Latitudes of the rotated points (degrees).lon (
ndarray) – Longitudes of the rotated points (degrees).south_pole_lat (
float) – Latitude of the rotated south pole (degrees).south_pole_lon (
float) – Longitude of the rotated south pole (degrees).
- Returns:
ndarray– Unrotated latitudes (degrees).ndarray– Unrotated longitudes (degrees).
unrotate()operates on points already rotated with a rotation specified by (south_pole_lat,south_pole_lon). The function rotates the points back to the original locations.See also
Examples
>>> from earthkit.geo.rotate import unrotate >>> lat = [-18] >>> lon = [-41] >>> south_pole_lat = -20 >>> south_pole_lon = -40 >>> unrotate(lat, lon, south_pole_lat, south_pole_lon) (array([-87.78778846]), array([-25.4673765]))