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_clearsky to classify each timestamp as clear or cloudy. By default keeps the clear timestamps and removes cloudy ones; set keep_clear=False to invert.

Requires the ghi_mod_csky column in capdata.data_filtered (added by io.load_data when the site argument is supplied). When ghi_col is None, the measured GHI column is auto-detected from column_groups (the single irr-ghi-* entry other than irr-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 name is omitted).

Attributes

args_repr

Render detect_clearsky(k=v, ...) using the resolved kwargs.

custom_name

detect_kwargs

explanation

Human-readable description of the step's effect (read after run()).

ghi_col

keep_clear

name

param