act.utils.get_solar_azimuth_elevation#
- act.utils.get_solar_azimuth_elevation(latitude=None, longitude=None, time=None, library='skyfield', temperature_C='standard', pressure_mbar='standard')[source]#
Calculate solar azimuth, elevation and solar distance.
- Parameters:
latitude (int, float) – Latitude in degrees north positive. Must be a scalar.
longitude (int, float) – Longitude in degrees east positive. Must be a scalar.
time (datetime.datetime, numpy.datetime64, list, numpy.array) – Time in UTC. May be a scalar or vector. datetime must be timezone aware.
library (str) – Library to use for making calculations. Options include [‘skyfield’]
temperature_C (string or list of float) – If library is ‘skyfield’ the temperature in degrees C at the surface for atmospheric compensation of the positon of the sun. Set to None for no compensation or ‘standard’ for standard model with a standard temperature.
pressure_mbar (string or list of float) – If library is ‘skyfield’ the pressure in milibars at the surface for atmospheric compensation of the positon of the sun. Set to None for no compensation or ‘standard’ for standard model with a standard pressure.
- Returns:
result (tuple of float) – Values returned are a tuple of elevation, azimuth and distance. Elevation and azimuth are in degrees, with distance in Astronomical Units.