Skip to content

Vars x-axis alignment with null values #252

Answered by dbuezas
wrowlands3 asked this question in Q&A
Discussion options

You must be logged in to vote

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 to extended)

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 :)

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@dbuezas
Comment options

@dbuezas
Comment options

@wrowlands3
Comment options

@dbuezas
Comment options

@wrowlands3
Comment options

Answer selected by dbuezas
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