Skip to content

Commit

Permalink
revert change to nb
Browse files Browse the repository at this point in the history
  • Loading branch information
RondeauG committed Nov 15, 2024
1 parent 1a8e029 commit 184852d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/notebooks/4_ensembles.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@
"metadata": {},
"outputs": [],
"source": [
"# from xclim.testing.utils import nimbus\n",
"import urllib\n",
"\n",
"import pooch\n",
"import xarray as xr\n",
"\n",
"# from xclim.testing.utils import nimbus\n",
"from xclim.testing import open_dataset\n",
"\n",
"import xscen as xs\n",
"\n",
"url = \"https://github.com/Ouranosinc/xclim-testdata/tree/main/data/\"\n",
"datasets = {\n",
" \"ACCESS\": \"EnsembleStats/BCCAQv2+ANUSPLIN300_ACCESS1-0_historical+rcp45_r1i1p1_1950-2100_tg_mean_YS.nc\",\n",
" \"BNU-ESM\": \"EnsembleStats/BCCAQv2+ANUSPLIN300_BNU-ESM_historical+rcp45_r1i1p1_1950-2100_tg_mean_YS.nc\",\n",
Expand All @@ -59,8 +57,8 @@
"\n",
"for d in datasets:\n",
" # file = nimbus().fetch(datasets[d]) # There is currently a bug in xclim 0.53.2\n",
" file = pooch.retrieve(urllib.parse.urljoin(url, datasets[d]), known_hash=None)\n",
" ds = xr.open_dataset(file).isel(lon=slice(0, 4), lat=slice(0, 4))\n",
" # ds = xr.open_dataset(file).isel(lon=slice(0, 4), lat=slice(0, 4))\n",
" ds = open_dataset(datasets[d]).isel(lon=slice(0, 4), lat=slice(0, 4))\n",
" ds = xs.climatological_op(\n",
" ds,\n",
" op=\"mean\",\n",
Expand Down

0 comments on commit 184852d

Please sign in to comment.