In [ ]:
Copied!
# Uncomment to install climdata in Google Colab or other environments
# !pip install climdata
# Uncomment to install climdata in Google Colab or other environments
# !pip install climdata
W5E5 — climdata Example¶
W5E5 v2.0 is the ISIMIP reference dataset: WFDE5 over land merged with ERA5 over ocean, at 0.5° (~55 km) daily resolution. It is the observational baseline used to bias-adjust ISIMIP3b climate projections.
This example downloads W5E5 and extracts a single point (Berlin) for one year.
In [ ]:
Copied!
from climdata import ClimData
from climdata.datasets.W5E5 import W5E5
# Configure
overrides = [
"dataset=w5e5", # Select the W5E5 dataset for extraction
"lat=52",
"lon=13",
"time_range.start_date=2004-01-01", # Start date of extraction
"time_range.end_date=2004-12-31", # End date of extraction
"variables=[tasmin,tasmax,pr]", # Variables to extract: min/max temperature & precipitation
"data_dir=./data", # Local directory to store downloaded/intermediate files
]
extractor = ClimData(overrides=overrides)
# Fetch, load, and extract
w5e5 = W5E5(extractor.cfg)
w5e5.fetch() # Download from ISIMIP
w5e5.load() # Load into xarray
w5e5.extract(point=(extractor.cfg.lon, extractor.cfg.lat))
from climdata import ClimData
from climdata.datasets.W5E5 import W5E5
# Configure
overrides = [
"dataset=w5e5", # Select the W5E5 dataset for extraction
"lat=52",
"lon=13",
"time_range.start_date=2004-01-01", # Start date of extraction
"time_range.end_date=2004-12-31", # End date of extraction
"variables=[tasmin,tasmax,pr]", # Variables to extract: min/max temperature & precipitation
"data_dir=./data", # Local directory to store downloaded/intermediate files
]
extractor = ClimData(overrides=overrides)
# Fetch, load, and extract
w5e5 = W5E5(extractor.cfg)
w5e5.fetch() # Download from ISIMIP
w5e5.load() # Load into xarray
w5e5.extract(point=(extractor.cfg.lon, extractor.cfg.lat))
In [ ]:
Copied!
# Inspect the extracted dataset
w5e5.ds
# Inspect the extracted dataset
w5e5.ds