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 filtering/smoothing options #261

Merged
merged 5 commits into from
Oct 11, 2024

Conversation

ssuttles-usgs
Copy link
Collaborator

@ssuttles-usgs ssuttles-usgs commented Sep 30, 2024

Add butterworth and median filtering/smoothing options to user specified variables. New code 'core/filter.py' was created for this purpose. Documentation was updated to include the format for specifying the filter options available in config.yaml files.

Copy link
Member

@dnowacki-usgs dnowacki-usgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Steve! I made one small comment but one more sizable comment, for the names used in the config files to enable to the filtering.


def butter_filt(sig, sr, cutfreq, ftype, ford=4):
"""
2nd order butterworth filter using sosfiltfilt in scipy.signal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This docstring should be updated.

stglib/core/filter.py Show resolved Hide resolved
@dnowacki-usgs dnowacki-usgs merged commit fa7e4a0 into USGS-CMG:master Oct 11, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants