sasktran2.solar.SolarGeometryHandlerForced#

class sasktran2.solar.SolarGeometryHandlerForced(solar_zenith: float, solar_azimuth: float)[source]#

Bases: SolarGeometryHandlerBase

A solar handler where the solar angles are forced to be the same for all locations and times.

Parameters:
  • solar_zenith (float) – Solar zenith angle in [degrees]

  • solar_azimuth (float) – Solar azimuth angle in [degrees]. Here 0 degrees corresponds to pointing true north, 90 degrees to east, etc. Note that this is NOT relative to the observer. Note this is also pointing towards the sun, not away from the sun.

__init__(solar_zenith: float, solar_azimuth: float)[source]#

A solar handler where the solar angles are forced to be the same for all locations and times.

Parameters:
  • solar_zenith (float) – Solar zenith angle in [degrees]

  • solar_azimuth (float) – Solar azimuth angle in [degrees]. Here 0 degrees corresponds to pointing true north, 90 degrees to east, etc. Note that this is NOT relative to the observer. Note this is also pointing towards the sun, not away from the sun.

Methods

__init__(solar_zenith, solar_azimuth)

A solar handler where the solar angles are forced to be the same for all locations and times.

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:
  • latitude (float) – Latitude in [degrees north]

  • longitude (float) – Longitude in [degrees east]

  • altitude (float) – Altius in [m]

  • time (pd.Timestamp) – Time of interest

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:

tuple[float, float]