Skip to content

Commit

Permalink
chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jun 21, 2023
1 parent be88057 commit 461837a
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions notebooks/wp4/clima_and_bias_cordex_cmip6_regionalised.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -315,17 +315,21 @@
"annual = timeseries == \"annual\"\n",
"transform_chunks = annual\n",
"print(\"Downloading and processing ERA5\")\n",
"ds_era = download.download_and_transform(\n",
" *request_era,\n",
" chunks=chunks,\n",
" transform_chunks=transform_chunks,\n",
" transform_func=compute_regridded_timeseries,\n",
" transform_func_kwargs={\n",
" \"year_start\": year_start,\n",
" \"year_stop\": year_stop,\n",
" \"annual\": annual,\n",
" },\n",
").expand_dims(model=[\"ERA5\"])\n",
"ds_era = (\n",
" download.download_and_transform(\n",
" *request_era,\n",
" chunks=chunks,\n",
" transform_chunks=transform_chunks,\n",
" transform_func=compute_regridded_timeseries,\n",
" transform_func_kwargs={\n",
" \"year_start\": year_start,\n",
" \"year_stop\": year_stop,\n",
" \"annual\": annual,\n",
" },\n",
" )\n",
" .expand_dims(model=[\"ERA5\"])\n",
" .chunk(chunks)\n",
")\n",
"\n",
"datasets = []\n",
"for model in models:\n",
Expand Down

0 comments on commit 461837a

Please sign in to comment.