sup3r.preprocessing.derivers.utilities.SolarZenith

sup3r.preprocessing.derivers.utilities.SolarZenith#

class SolarZenith[source]#

Bases: object

Class to compute solar zenith angle. Use SPA from rex and wrap some of those methods in dask.array.map_blocks so this can be computed in parallel across chunks.

Methods

get_zenith(time_index, lat_lon[, ll_chunks])

Compute solar zenith angle from time_index and location

static get_zenith(time_index, lat_lon, ll_chunks=(10, 10, 1))[source]#

Compute solar zenith angle from time_index and location

Parameters:
  • time_index (ndarray | pandas.DatetimeIndex | str) – Datetime stamps of interest

  • lat_lon (ndarray, da.core.Array) – (latitude, longitude, 2) for site(s) of interest

  • ll_chunks (tuple) – Chunks for lat_lon array. To run this on a large domain, even with delayed computations through dask, we need to use small chunks for the lat lon array.

Returns:

zenith (da.core.Array) – Solar zenith angle in degrees