hypso.srf.solar#

The Sun as the reflectance step needs it: reference solar spectral irradiance (TSIS-1 HSRS or Thuillier 2002) and the Earth-Sun distance.

Functions#

earth_sun_distance(iso_time)

Earth-Sun distance in AU for a date.

load_solar_irradiance([source])

A reference solar irradiance spectrum.

Module Contents#

hypso.srf.solar.earth_sun_distance(iso_time)[source]#

Earth-Sun distance in AU for a date.

1 - 0.01672 cos(0.9856 (doy - 4)) with the cosine argument in degrees: 0.9856 deg/day is the mean orbital motion, day 4 is perihelion. (Until 2026-10-23 the argument was passed as radians, a date-dependent TOA reflectance error of up to about 6%.)

Parameters:

iso_time (str or datetime) – Acquisition time.

Returns:

Distance over the mean distance (R / R_0).

Return type:

float

hypso.srf.solar.load_solar_irradiance(source='tsis')[source]#

A reference solar irradiance spectrum.

Parameters:

source ({"tsis", "thuillier"}, default "tsis") – TSIS-1 HSRS v2 (2022-11-30, 0.005 nm sampling) or Thuillier (2002).

Returns:

  • irradiance (numpy.ndarray) – In mW m-2 nm-1.

  • wavelengths (numpy.ndarray) – In nm.