Skip to content

Commit

Permalink
add sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Sep 25, 2023
1 parent 5f90bb5 commit d3cc820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/wp4/cmip6_sea_ice_diagnostics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@
" grid_cell_area = 25**2 # km2\n",
"\n",
" # Time resample\n",
" ds = ds.resample(time=\"MS\").mean()\n",
" ds = ds.sortby(\"time\").resample(time=\"MS\").mean()\n",
" ds[\"time\"].attrs[\"long_name\"] = \"time\"\n",
"\n",
" if not regrid_kwargs:\n",
Expand Down

0 comments on commit d3cc820

Please sign in to comment.