util
¶
Functions:
-
rotate_from_lat_lon–This function applies a spherical rotation to a set of given latitude and
-
rotate_to_lat_lon–This function un-does a spherical rotation to a set of given latitude and
rotate_from_lat_lon
¶
rotate_from_lat_lon(
lons, lats, lon_south_pole=18, lat_south_pole=-39.25
)
This function applies a spherical rotation to a set of given latitude and longitude coordinates, yielding coordinates in the rotated system.
Parameters:
-
(lons¶(list, ndarray)) –A one-dimensional list of longitude coordinates
-
(lats¶(list, ndarray)) –A one-dimensional list of latitude coordinates
-
(lon_south_pole¶float, default:18) –The longitude of the rotated system's south pole
-
(lat_south_pole¶float, default:-39.25) –The latitude of the rotated system's south pole
Source code in reskit/weather/util.py
rotate_to_lat_lon
¶
rotate_to_lat_lon(
rlons, rlats, lon_south_pole=18, lat_south_pole=-39.25
)
This function un-does a spherical rotation to a set of given latitude and longitude coordinates (in the rotated), yielding coordinates in the regular longitude and latitude system.
Parameters:
-
(rlons¶(list, ndarray)) –A one-dimensional list of longitude coordinates in the rotated system
-
(rlats¶(list, ndarray)) –A one-dimensional list of latitude coordinates in the rotated system
-
(lon_south_pole¶float, default:18) –The longitude of the rotated system's south pole
-
(lat_south_pole¶float, default:-39.25) –The latitude of the rotated system's south pole