earthkit.meteo.solar.xarray.cos_solar_zenith_angle

earthkit.meteo.solar.xarray.cos_solar_zenith_angle(date, latitudes, longitudes)

Compute the cosine of the solar zenith angle.

Parameters:
  • date (datetime.datetime) – Date/time (typically a scalar applying to all latitude/longitude points).

  • latitudes (xarray.DataArray) – Latitude (degrees).

  • longitudes (xarray.DataArray) – Longitude (degrees).

Returns:

Cosine of the solar zenith angle (clipped to be non-negative).

Return type:

xarray.DataArray

Notes

The result is clipped to the [0, 1] range by setting negative values to 0.