Skip to content

Is there a way to get the mean annual maximum of monthly data with an xarray function? #5854

Answered by TomNicholas
pecos27 asked this question in Q&A
Discussion options

You must be logged in to vote

Have you seen the GroupBy functionality? If you added a year coordinate to your data then you could do something like da.groupby("year").max().

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@spencerkclark
Comment options

@pecos27
Comment options

Answer selected by pecos27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants