From bcf90884689fd1f66951f17e3ad77a5665701f9b Mon Sep 17 00:00:00 2001 From: clausqr Date: Mon, 24 Jun 2019 08:39:47 -0300 Subject: [PATCH 1/2] Fix doc about get_alt_az() return units --- pyorbital/astronomy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyorbital/astronomy.py b/pyorbital/astronomy.py index cd49f89..39b0614 100644 --- a/pyorbital/astronomy.py +++ b/pyorbital/astronomy.py @@ -118,7 +118,7 @@ def _local_hour_angle(utc_time, longitude, right_ascension): def get_alt_az(utc_time, lon, lat): """Return sun altitude and azimuth from *utc_time*, *lon*, and *lat*. lon,lat in degrees - What is the unit of the returned angles and heights!? FIXME! + The angle returned is given in radians. """ lon = np.deg2rad(lon) lat = np.deg2rad(lat) From be9212f28037505b388e7599e6ae6b0c2c843b2d Mon Sep 17 00:00:00 2001 From: clausqr Date: Mon, 24 Jun 2019 08:42:23 -0300 Subject: [PATCH 2/2] Update astronomy.py --- pyorbital/astronomy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyorbital/astronomy.py b/pyorbital/astronomy.py index 39b0614..d77f49c 100644 --- a/pyorbital/astronomy.py +++ b/pyorbital/astronomy.py @@ -118,7 +118,7 @@ def _local_hour_angle(utc_time, longitude, right_ascension): def get_alt_az(utc_time, lon, lat): """Return sun altitude and azimuth from *utc_time*, *lon*, and *lat*. lon,lat in degrees - The angle returned is given in radians. + The returned angles are given in radians. """ lon = np.deg2rad(lon) lat = np.deg2rad(lat)