Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of data filtering to Logging docs #144

Closed
npetersen2 opened this issue Aug 5, 2020 · 1 comment
Closed

Add example of data filtering to Logging docs #144

npetersen2 opened this issue Aug 5, 2020 · 1 comment
Labels
docs Updates for docs. help wanted Anyone can jump in and assist on this issue.

Comments

@npetersen2
Copy link
Collaborator

Per @Nick-Hemenway

You can VERY easily filter data in python pandas as follows:

First, create a filtering function:

# If the window length is 21, it will fit 10 data points to each side of the data point that is being smoothed
from scipy import signal
my_filter = lambda x: signal.savgol_filter(x, window_length = 21, polyorder = 2)

Then, to use the filter:
image

TODO

Since this is so easy and could be a very common thing to do when logging data, add a section to the Logging markdown docs with the above information.

@npetersen2 npetersen2 added docs Updates for docs. help wanted Anyone can jump in and assist on this issue. labels Aug 5, 2020
@npetersen2
Copy link
Collaborator Author

Closing this issue since it was moved to the docs.amdc.dev repo:

Severson-Group/docs.amdc.dev#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Updates for docs. help wanted Anyone can jump in and assist on this issue.
Projects
None yet
Development

No branches or pull requests

1 participant