W5E5 0.5 deg reference dataset
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
In [ ]:
Copied!
from climdata.utils.config import load_config
from climdata.datasets.W5E5 import W5E5
from climdata import ClimData
# Configure
overrides = [
"dataset=w5e5", # Select the MSWX dataset for extraction
"lat=52",
"lon=13",
f"time_range.start_date=2004-01-01", # Start date of extraction
f"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.utils.config import load_config
from climdata.datasets.W5E5 import W5E5
from climdata import ClimData
# Configure
overrides = [
"dataset=w5e5", # Select the MSWX dataset for extraction
"lat=52",
"lon=13",
f"time_range.start_date=2004-01-01", # Start date of extraction
f"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))
🔍 Searching for W5E5 datasets in ISIMIP repository... 📥 Fetching tasmin... ✅ Found dataset: 20crv3-w5e5_obsclim_tasmin_global_daily ⬇️ Downloading: 20crv3-w5e5_obsclim_tasmin_global_daily_2001_2010.nc
In [5]:
Copied!
w5e5.ds
w5e5.ds
Out[5]:
<xarray.Dataset> Size: 7kB
Dimensions: (time: 366)
Coordinates:
lon float64 8B 13.25
lat float64 8B 52.25
* time (time) datetime64[ns] 3kB 2004-01-01 2004-01-02 ... 2004-12-31
Data variables:
tasmin (time) float32 1kB ...
tasmax (time) float32 1kB ...
pr (time) float32 1kB ...
Attributes:
title: 20CRv3-W5E5 observational climate input data for ISIMIP3a
institution: Potsdam Institute for Climate Impact Research (PIK)
project: Inter-Sectoral Impact Model Intercomparison Project phase 3...
contact: ISIMIP cross-sectoral science team <info@isimip.org> <https...
summary: 20CRv3, member 001, bias-adjusted to W5E5 v2.0 with ISIMIP3...
references: Slivinski et al. (2019) <https://doi.org/10.1002/qj.3598> a...
source: W5E5 via ISIMIP
dataset: W5E5v2.0
description: WFDE5 over land merged with ERA5 over ocean