sup3r.preprocessing.feature_handling.CloudMaskH5
- class CloudMaskH5[source]
Bases:
DerivedFeature
Cloud Mask feature class for computing from H5 data
Methods
compute
(data[, height])Compute the cloud mask
inputs
(feature)Get list of raw features used in calculation of the cloud mask
- classmethod inputs(feature)[source]
Get list of raw features used in calculation of the cloud mask
- Parameters:
feature (str) – Cloud mask feature name, needs to be “cloud_mask”
- Returns:
list – List of required features for cloud_mask: clearsky_ghi, ghi
- classmethod compute(data, height=None)[source]
Compute the cloud mask
- 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:
cloud_mask (ndarray) – Cloud mask, e.g. 1 where cloudy, 0 where clear. NaN where nighttime. Data is float32 so it can be normalized without any integer weirdness.