Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify documentation regarding attributes used in get_angles #2020

Merged
merged 5 commits into from Feb 15, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion satpy/modifiers/angles.py
Expand Up @@ -250,13 +250,18 @@ def get_angles(data_arr: xr.DataArray) -> tuple[xr.DataArray, xr.DataArray, xr.D

Args:
data_arr: DataArray to get angles for. Information extracted from this
object are ``.attrs["area"]`` and ``.attrs["start_time"]``.
object are ``.attrs["area"]``,``.attrs["start_time"]``, and
``.attrs["orbital_parameters"]`` or the available
``.attrs["satellite_longitude"]``, ``.attrs["satellite_latitude"]``,
and ``.attrs["satellite_altitude"]``.
ghiggi marked this conversation as resolved.
Show resolved Hide resolved
Additionally, the dask array chunk size is used when generating
new arrays. The actual data of the object is not used.

Returns:
Four DataArrays representing sensor azimuth angle, sensor zenith angle,
solar azimuth angle, and solar zenith angle. All values are in degrees.
Sensor angles are provided in the [0, 360] degree range.
Solar angles are provided in the [-180, 180] degree range.

"""
sata, satz = _get_sensor_angles(data_arr)
Expand Down