sup3r.preprocessing.feature_handling.ClearSkyRatioH5

class ClearSkyRatioH5[source]

Bases: DerivedFeature

Clear Sky Ratio feature class for computing from H5 data

Methods

compute(data[, height])

Compute the clearsky ratio

inputs(feature)

Get list of raw features used in calculation of the clearsky ratio

classmethod inputs(feature)[source]

Get list of raw features used in calculation of the clearsky ratio

Parameters:

feature (str) – Clearsky ratio feature name, needs to be “clearsky_ratio”

Returns:

list – List of required features for clearsky_ratio: clearsky_ghi, ghi

classmethod compute(data, height=None)[source]

Compute the clearsky ratio

Parameters:
  • data (dict) – dictionary of feature arrays used for this compuation, must include clearsky_ghi and ghi

  • height (str | int) – Placeholder to match interface with other compute methods

Returns:

cs_ratio (ndarray) – Clearsky ratio, e.g. the all-sky ghi / the clearsky ghi. NaN where nighttime.