Skip to content

Resample by year using mean #4518

Closed Answered by pp-mo
BorjaEst asked this question in Q&A
Jan 21, 2022 · 6 comments · 1 reply
Discussion options

You must be logged in to vote

I don't have much detailed knowledge of xarray (I assume this is 'really' an xarray operation?)
So I'm not entirely sure what this exact operation involves. Certainly the cf-xarray docs don't help much !
But ...
the exisiting "Iris way" of performing aggregated statistics (equivalent to a 'groupby') is to first create an auxiliary 'categorised coordinate' and then use Cube.aggregated_by
So, there is already a User Guide section on it, here : https://scitools-iris.readthedocs.io/en/latest/userguide/cube_statistics.html#partially-reducing-data-dimensions
Can you confirm whether that is what you were looking for ?

As a general development point, I think we should probably get around to provi…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by BorjaEst
Comment options

You must be logged in to vote
1 reply
@BorjaEst
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants