sup3r.preprocessing.feature_handling.ClearSkyRatioCC
- class ClearSkyRatioCC[source]
Bases:
DerivedFeature
Clear Sky Ratio feature class for computing from climate change netcdf data
Methods
compute
(data[, height])Compute the daily average climate change 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, rsds (rsds==ghi for cc datasets)
- classmethod compute(data, height=None)[source]
Compute the daily average climate change clearsky ratio
- Parameters:
data (dict) – dictionary of feature arrays used for this compuation, must include clearsky_ghi and rsds (rsds==ghi for cc datasets)
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. This is assumed to be daily average data for climate change source data.