Skip to content

Understanding how rolling_window_statistics works #3559

Answered by malininae
mo-abodas asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mo-abodas, I was the person who wrote this preprocessor, and I think I know where your issue is coming from. The preprocessor uses the time stamps of the input cube. I'm assuming, you are using monthly data to generate the cube. Now, in the default order of the preprocessor functions (which you are using) rolling_window_statistics comes before annual_statistics and area_statistics, so you basically end up doing the rolling_window_statitics on the monthly data, which is "ish" equivalent to the annual statistics and that's why you don't see much difference. At the lower plot, you are using rolling_window_statistics on the annual data, so you are getting the desired smoothing. You can ob…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mo-abodas
Comment options

mo-abodas Mar 29, 2024
Collaborator Author

Answer selected by mo-abodas
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