Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jul 11, 2023
1 parent 4cd11a5 commit bc269eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebooks/wp5/era5_cerra_extremes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@
" transform_func=regionalised_max,\n",
" transform_func_kwargs=region_slices[region],\n",
" )\n",
" da = ds[\"t2m\"].max(\"time\", keep_attrs=True)\n",
" (varname,) = ds.data_vars\n",
" da = ds[varname].max(\"time\", keep_attrs=True)\n",
" with xr.set_options(keep_attrs=True):\n",
" da -= 273.15\n",
" da.attrs[\"units\"] = \"°C\"\n",
Expand Down

0 comments on commit bc269eb

Please sign in to comment.