Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Feb 21, 2024
1 parent 74d3e24 commit de8886a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion notebooks/wp4/extreme_temperature_indices.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"## Define Parameters"
]
Expand Down Expand Up @@ -300,9 +306,11 @@
" paths = [f\"{tmpdir}/{label}.nc\" for label in labels]\n",
" datasets = [ds.chunk(-1) for ds in datasets]\n",
" xr.save_mfdataset(datasets, paths)\n",
"\n",
" ds = xr.open_mfdataset(paths)\n",
" in_files = f\"{tmpdir}/rechunked.zarr\"\n",
" ds.chunk(time=-1, latitude=\"auto\", longitude=\"auto\").to_zarr(in_files)\n",
"\n",
" datasets = [\n",
" icclim.index(\n",
" index_name=index_name,\n",
Expand Down

0 comments on commit de8886a

Please sign in to comment.