captest.filters.Clearsky
- class captest.filters.Clearsky(*, detect_kwargs, ghi_col, keep_clear, custom_name, name)
Remove intervals where measured GHI doesn’t match modeled clear-sky GHI.
Uses
pvlib.clearsky.detect_clearskyto classify each timestamp as clear or cloudy. By default keeps the clear timestamps and removes cloudy ones; setkeep_clear=Falseto invert.Requires the
ghi_mod_cskycolumn incapdata.data_filtered(added byio.load_datawhen thesiteargument is supplied). Whenghi_colis None, the measured GHI column is auto-detected fromcolumn_groups(the singleirr-ghi-*entry other thanirr-ghi-clear_sky); multi-column groups are averaged with a warning.- __init__(**params)
Methods
__init__(**params)from_config(config)Build an instance from a
to_config()dict.run(capdata)Execute the step, record runtime state, and append self to filters.
to_config()Serialize this step to a config dict (every param, defaults included; the param-system
nameis omitted).Attributes
args_reprRender
detect_clearsky(k=v, ...)using the resolved kwargs.custom_namedetect_kwargsexplanationHuman-readable description of the step's effect (read after run()).
ghi_colkeep_clearnameparam