Utilities#

Explicit time averaging#

bsrn.utils.averaging.pretty_average(df, freq)

Average df over explicit labeled windows (not pandas resample semantics).

QC Statistics#

bsrn.utils.quality.get_daily_stats(df, lat, ...)

Calculate daily QC statistics and sunshine duration.

Clear-sky Detection (CSD)#

bsrn.utils.clear_sky_detection.reno_csd(ghi, ...)

Reno2016 clear-sky detection [1]_.

bsrn.utils.clear_sky_detection.ineichen_csd(...)

Ineichen2009 clear-sky detection [1]_.

bsrn.utils.clear_sky_detection.lefevre_csd(...)

Lefevre2013 clear-sky detection [1]_.

bsrn.utils.clear_sky_detection.brightsun_csd(...)

BrightSun2020CSDc clear-sky detection (tri-component) [1]_.

bsrn.utils.clear_sky_detection.detect_clearsky(...)

Wrapper for clear-sky detection methods.

Cloud Enhancement (CEE)#

bsrn.utils.cee_detection.detect_cee(method, ...)

Wrapper for cloud enhancement event (CEE) detection methods.

bsrn.utils.cee_detection.killinger_ced(ghi, ...)

Detect cloud enhancement events using Killinger et al. (2017) [1]_.

bsrn.utils.cee_detection.yang_ced(ghi, ...)

Detect cloud enhancement events using Yang et al. (2018) [1]_.

bsrn.utils.cee_detection.gueymard_ced(ghi, ...)

Detect cloud enhancement events when GHI exceeds extraterrestrial GHI [1]_.

Calculations#

bsrn.utils.calculations.calc_kb(bni, zenith, ...)

Calculates beam transmittance ($k_b$) following pvlib conventions [1]_ [2]_.

bsrn.utils.calculations.calc_kd(dhi, zenith, ...)

Calculates diffuse transmittance ($k_d$) following pvlib conventions [1]_ [2]_.

bsrn.utils.calculations.calc_kt(ghi, zenith, ...)

Calculates clearness index ($k_t$) following pvlib conventions [1]_ [2]_ [3]_.