sup3r.preprocessing.feature_handling.TasMax
- class TasMax[source]
Bases:
Tas
Daily max air temperature near surface variable from climate change nc files
Methods
compute
(data, height)Method to compute tas in Celsius from tas source in Kelvin
inputs
(feature)Required inputs for computing tas
Attributes
Source CC.nc dataset name for air temperature variable.
- CC_FEATURE_NAME = 'tasmax'
Source CC.nc dataset name for air temperature variable. This can be changed in subclasses for other temperature datasets.
- classmethod compute(data, height)
Method to compute tas in Celsius from tas source in Kelvin
- Parameters:
data (dict) – Dictionary of raw feature arrays to use for derivation
height (str | int) – Height at which to compute the derived feature
- Returns:
ndarray – Derived feature array
- classmethod inputs(feature)
Required inputs for computing tas
- Parameters:
feature (str) – raw feature name. e.g. tas
- Returns:
list – List of required features for computing tas