nsrdb.data_model.solar_zenith_angle.SolarZenithAngle

class SolarZenithAngle[source]

Bases: BaseDerivedVar

Class to derive the solar zenith angle.

Methods

derive(time_index, lat_lon, elev, ...[, ...])

Compute the solar zenith angle after atmospheric refraction correction

Attributes

DEPENDENCIES

static derive(time_index, lat_lon, elev, surface_pressure, air_temperature, big_meta_threshold=1000000.0, n_chunks=10)[source]

Compute the solar zenith angle after atmospheric refraction correction

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

  • lat_lon (ndarray) – (latitude, longitude) for site(s) of interest. Must be a 2D array with shape (n_sites, 2).

  • elev (ndarray) – Elevation above sea-level for site(s) of interest. Must be a 1D array with length equal to the number of sites.

  • surface_pressure (ndarray) – Pressure at all sites in millibar (mbar is same as hPa)

  • air_temperature (ndarray) – Temperature at all sites in C

  • big_meta_threshold (int | float) – Threshold over which a meta data is considered “big” and the SZA is computed in chunks to reduce memory usage.

  • n_chunks (int) – Number of compute chunks to split the meta data into for “big” meta data projects.

Returns:

theta (ndarray) – Solar zenith after atmospheric refraction correction in degrees