deep4downscaling is a Python library for developing deep learning models for statistical downscaling. It provides data preprocessing, established architectures (DeepESD, U-Nets, ViT), training and inference utilities, community-standard evaluation metrics, climate change signal analysis, and explainability tools.
Documentation: deep4downscaling.readthedocs.io (or build locally with mkdocs serve)
git clone https://github.com/SantanderMetGroup/deep4downscaling/
cd deep4downscaling
pip install --upgrade pip setuptools wheel
pip install .For development:
pip install -e ".[docs]"import deep4downscaling.trans as trans
from deep4downscaling.deep.models import DeepESDtas
from deep4downscaling.deep.loss import MseLoss
from deep4downscaling.deep.train import standard_training_loop
# Preprocess xarray datasets, build a DataLoader, then train
# See docs/getting-started/quickstart.md for the full workflow| Resource | Description |
|---|---|
| Documentation site | User guide, API reference, how-tos |
notebooks/ |
End-to-end Jupyter tutorial workflows |
| Contributing | Branching model and PR guidelines |
Build the docs locally:
pip install -e ".[docs]"
mkdocs servePull requests target the devel branch. See docs/contributing.md for the full workflow.
| Branch | Purpose |
|---|---|
main |
Stable, release-ready code |
devel |
Active development |
If you use this library in your research, please cite it via the Zenodo DOI.
MIT