captest.capdata.CapData.filter_clearsky

CapData.filter_clearsky(ghi_col=None, inplace=True, keep_clear=True, **kwargs)

Use pvlib detect_clearsky to remove periods with unstable irradiance.

The pvlib detect_clearsky function compares modeled clear sky ghi against measured clear sky ghi to detect periods of clear sky. Refer to the pvlib documentation for additional information.

By default uses data identified by the column_groups dictionary as ghi and modeled ghi. Issues warning if there is no modeled ghi data, or the measured ghi data has not been aggregated.

Parameters:
  • ghi_col (str, default None) – The name of a column name of measured GHI data. Overrides default attempt to automatically identify a column of GHI data.

  • inplace (bool, default True) – When true removes periods with unstable irradiance. When false returns pvlib detect_clearsky results, which by default is a series of booleans.

  • keep_clear (bool, default True) – Set to False to keep cloudy periods.

  • **kwargs – Passed to pvlib detect_clearsky. By default infer_limits is set to True, which automatically determines appropriate thresholds (including window length) based on the data’s sample interval. Pass infer_limits=False and window_length=<int> to manually control the detection parameters. See pvlib documentation for all available parameters.