cmip6_downscaling.methods.bcsd.utils.reconstruct_finescale#
- cmip6_downscaling.methods.bcsd.utils.reconstruct_finescale(ds: Dataset, spatial_anomaly: Dataset | None = None)[source]#
Add the spatial anomalies back into the interpolated fine scale dataset.
- Parameters:
- dsxr.Dataset
Dataset or data array you’re wanting to chunk. With dimensions (‘month’, ‘lat’, ‘lon’)
- spatial_anomalyxr.Dataset, optional
The dataset of monthly spatial anomalies resulting from taking the difference between the fine scale obs and the interpolated obs. With dimensions (‘month’, ‘lat’, ‘lon’)
- Returns:
- reconstructedxr.Dataset
Finescale dataset with spatial heterogeneity added back in