Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Apr 4, 2024
1 parent 2e776f8 commit bb08ca3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions notebooks/wp5/glacier_distribution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,7 @@
"outputs": [],
"source": [
"year = 2000\n",
"cumulative = ds[\"cumulative\"]\n",
"weighted_time = means[\"weighted\"].to_xarray().assign_coords(region=cumulative[\"region\"])\n",
"cumulative = ds.reset_coords()[\"Cumulative\"]\n",
"interpolated = cumulative.interp(time=means[\"weighted\"].to_xarray())\n",
"volume = 1.091 * (interpolated - cumulative.sel(time=year)).compute()\n",
"for region, result in volume.groupby(\"region\", squeeze=False):\n",
Expand Down

0 comments on commit bb08ca3

Please sign in to comment.