earthkit.meteo.solar.cos_solar_zenith_angle

earthkit.meteo.solar.cos_solar_zenith_angle(date: DateLike, latitudes: ArrayLike, longitudes: ArrayLike)
earthkit.meteo.solar.cos_solar_zenith_angle(date: DateLike, latitudes: xarray.DataArray, longitudes: xarray.DataArray) xarray.DataArray

Compute the cosine of the solar zenith angle.

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

  • latitudes (array-like | xarray.DataArray) – Latitude (degrees).

  • longitudes (array-like | xarray.DataArray) – Longitude (degrees).

Returns:

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

Return type:

array-like | xarray.DataArray

Notes

The result is clipped by setting negative values to 0.

Implementations

cos_solar_zenith_angle() calls one of the following implementations depending on the type of the input arguments:

The function returns an object of the same type as the input arguments.