Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Feb 7, 2024
1 parent 6bde2ff commit 76021f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebooks/wp3/WIP-hit_rate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@
" # Mask region\n",
" mask = regionmask.defined_regions.srex.mask(ds)\n",
" index = regionmask.defined_regions.srex.map_keys(region)\n",
" ds = ds.where((mask == index).compute(), drop=True).expand_dims(region=[region])\n",
" ds = ds.where((mask == index).compute(), drop=True)\n",
" ds = ds.expand_dims(region=[region])\n",
"\n",
" # Spatial mean\n",
" ds = diagnostics.spatial_weighted_mean(ds)\n",
Expand Down

0 comments on commit 76021f4

Please sign in to comment.