cds
canari_ml.data.processors.cds
¶
canari_ml.data.processors.cds.logger = logging.getLogger(__name__)
module-attribute
¶
canari_ml.data.processors.cds.ERA5PreProcessor(*args, smooth_sigma=0, **kwargs)
¶
Bases: NormalisingChannelProcessor
Based on NormalisingChannelProcessor class from preprocess-toolbox
Source code in src/canari_ml/data/processors/cds.py
canari_ml.data.processors.cds.ERA5PreProcessor.smooth_sigma = smooth_sigma
instance-attribute
¶
canari_ml.data.processors.cds.ERA5PreProcessor.pre_normalisation(var_name, da)
¶
Source code in src/canari_ml/data/processors/cds.py
canari_ml.data.processors.cds.ERA5PreProcessor.post_normalisation(var_name, da)
¶
Source code in src/canari_ml/data/processors/cds.py
canari_ml.data.processors.cds.ERA5PreProcessor.save_processed_file(var_name, name, data, convert=True, overwrite=False)
¶
Save processed data to netCDF file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
var_name
|
str
|
The name of the variable. |
required |
name
|
str
|
The name of the file. |
required |
data
|
Dataset | DataArray
|
The data to be saved. |
required |
convert
|
bool
|
Whether to convert data to the processors data type |
True
|
overwrite
|
bool
|
Whether to overwrite extant files |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
object |
str
|
The path of the saved netCDF file. |