Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jul 19, 2023
1 parent c3daa04 commit df518c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions notebooks/wp4/clima_and_bias_cordex_cmip6_regionalised.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@
" da = da.assign_coords(height=ds[\"height\"] if \"height\" in ds else None)\n",
" else:\n",
" raise ValueError\n",
" da = da.chunk(season=1, year=1)\n",
" da.encoding[\"chunksizes\"] = tuple(map(max, da.chunks))\n",
" return da.to_dataset()"
]
},
Expand Down Expand Up @@ -340,7 +342,7 @@
" },\n",
" )\n",
" .expand_dims(model=[\"ERA5\"])\n",
" .chunk(chunks)\n",
" .chunk(season=1, year=1)\n",
")\n",
"\n",
"datasets = []\n",
Expand All @@ -363,7 +365,7 @@
" },\n",
" )\n",
" datasets.append(ds.expand_dims(model=[model]))\n",
"ds_sim = xr.concat(datasets, \"model\").chunk(chunks)"
"ds_sim = xr.concat(datasets, \"model\").chunk(season=1, year=1)"
]
},
{
Expand Down

0 comments on commit df518c6

Please sign in to comment.