Skip to content

Commit

Permalink
mask compute
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jul 18, 2023
1 parent e3f51ab commit 0857484
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
" transform_func=utils.regionalise,\n",
" transform_func_kwargs={\"lon_slice\": lon_slice, \"lat_slice\": lat_slice},\n",
" )\n",
" da_lsm = ds_lsm[\"lsm\"].squeeze(\"time\", drop=True)\n",
" da_lsm = ds_lsm[\"lsm\"].squeeze(\"time\", drop=True).compute()\n",
" ds = ds.where(da_lsm > 0.5)\n",
"ds = ds.compute()\n",
"with xr.set_options(keep_attrs=True):\n",
Expand Down

0 comments on commit 0857484

Please sign in to comment.