sasktran2.solar.SolarGeometryHandlerAstropy#
- class sasktran2.solar.SolarGeometryHandlerAstropy[source]#
Bases:
SolarGeometryHandlerBaseSolar handler where the astropy package is used to calculate the solar angles. Must have astropy installed in the Python environment in order to use this solar handler.
Interface class for the solar handler. A solar handler is used to calculate the solar angles for a give time and location.
- __init__()#
Interface class for the solar handler. A solar handler is used to calculate the solar angles for a give time and location.
Methods
__init__()Interface class for the solar handler.
target_solar_angles(latitude, longitude, ...)Calculates the solar zenith and solar azimuth angles for a given location and time.
- target_solar_angles(latitude: float, longitude: float, altitude: float, time: Timestamp) tuple[float, float][source]#
Calculates the solar zenith and solar azimuth angles for a given location and time.
- Parameters:
- Returns:
Solar zenith and solar azimuth angles in [degrees]. Solar azimuth is relative to true north, not to the observer. And is defined clockwise from north, such that the east is 90 degrees, south is 180 degrees, etc. The azimuthal direction points towards the sun.
- Return type: