Getting Started#

This guide provides a quick introduction to using bsrn for quality control and clear-sky modeling.

Functional API#

All pipeline steps are also available as standalone functions, useful when working with non-BSRN data or custom DataFrames:

from bsrn.physics.geometry import add_solpos_columns
from bsrn.modeling.clear_sky import add_clearsky_columns
from bsrn.qc.wrapper import run_qc

df = add_solpos_columns(df, lat=47.80, lon=124.49, elev=170)
df = add_clearsky_columns(df, lat=47.80, lon=124.49, elev=170)
df = run_qc(df, lat=47.80, lon=124.49, elev=170)

Key Features#

  • Automated Quality Control: 6 levels of QC based on BSRN standards.

  • Clear-sky Modeling: Support for Ineichen, McClear, and REST2.

  • Clear-sky Detection: Multiple algorithms (Reno, Ineichen, etc.).

  • Cloud Enhancement detection: Killinger, Yang, Gueymard.

  • Irradiance Separation: Erbs, BRL, Engerer2, Yang4.