Running absolute mean normalisation within winzorizing function #226
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some additions to s03compute_no_rotation.py and default.csv, editing the winsorizing function, to add the capability for running absolute mean normalisation. RAMN is selected by setting the windsorizing parameter to "-2". New parameters RAMN_EQfilt and RAMN_window also added.
As suggested in Bensen et al. 2007 section 2.1, there is both the option to weight by unfiltered data, and to weight by data which has been bandpass filtered to emphasise eathquake frequencies.
This function has been tested on data outside of msnoise (Attached an example for 1 minute of data:
ERHM_winzorizing_options.pdf)
This function has also been tested using a version of msnoise 1.6 with this version s03_compute_no_rotation.py (with some minor edits to the rest of the code to ensure compatibility with v1.6).
It seems to work, but extensive testing (including best window length) has not yet been completed.