-
Notifications
You must be signed in to change notification settings - Fork 83
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
Running absolute mean normalisation within winzorizing function #226
base: master
Are you sure you want to change the base?
Conversation
Updating comments at top of winsorizing function to be accurate
Adding RAMN_window, RAMN_EQfilt for the ERHM version of the winzsorizing function. RAMN_window is an integer number of samples either side. Needs to be updated if we choose the window to be a number of seconds instead
hey @erhmestel , sorry for not inputting earlier here. I'll have a look at the code and cherry-pick the changes to merge them in #227 at some point ! At that moment, it'll be needed to have some bits of documentation/graphical examples etc. But don't worry for now, the doc will undergo a strong re-write so no hurry... |
Thanks @ThomasLecocq |
Hi Thomas, I have updated this code to down-weight N and E components by the mean of the two to maintain consistency in processing between them, allowing rotation later. Will upload those changes soon once I have resolved the differences with the updates you've added to this function since my initial commit. In the meantime, do you have a reccomendation on how I should cite the development version of MSNoise when explaining this updated function within my thesis? El |
Hey El, I would love to see the RAMN in the 2.0 release, which I try to puuuuushhh. Would you be ready to help ? I understand it's been super long, so if not, let me know, and I'll try to cherry-pick & make the documentation too |
@asyates @LaureBrenot if you guys wanna cherrypick some changes made here to add to the workflow :-) welcome :-) |
Hi @ThomasLecocq @asyates @LaureBrenot, |
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.