Vars x-axis alignment with null values #252
Answered
by
dbuezas
wrowlands3
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
dbuezas
Feb 24, 2023
Replies: 1 comment 9 replies
-
Yes moving window averaging adds a "delay" to the data of half the window size. You can compensate for that by adding As you noted, null values affect the moving window. That is because (as you already realized), the first thing that filter does is removing the "unavailable" values, and the window is not time based but element based instead. |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
dbuezas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes moving window averaging adds a "delay" to the data of half the window size. You can compensate for that by adding
centered: true
to the filter options (next toextended
)As you noted, null values affect the moving window. That is because (as you already realized), the first thing that filter does is removing the "unavailable" values, and the window is not time based but element based instead.
Your trick of using resample is the way to fix that, just add the
centered: true
option and you should be fine :)