Skip to content

Commit

Permalink
Update documentation with a 'blockwise' example for Cubed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed May 9, 2024
1 parent aadf92c commit 8d447ff
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/source/user-stories/climatology-hourly-cubed.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,37 @@
"source": [
"hourly.compute()"
]
},
{
"cell_type": "markdown",
"id": "7",
"metadata": {},
"source": [
"## Other climatologies: resampling by month\n",
"\n",
"This uses the \"blockwise\" strategy."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8",
"metadata": {},
"outputs": [],
"source": [
"monthly = ds.tp.resample(time=\"ME\").sum(method=\"blockwise\")\n",
"monthly"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9",
"metadata": {},
"outputs": [],
"source": [
"monthly.compute()"
]
}
],
"metadata": {
Expand Down

0 comments on commit 8d447ff

Please sign in to comment.