-
Notifications
You must be signed in to change notification settings - Fork 85
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
Party.relative_magnitude or Party.lag_calc(relative_magnitude=True) broken in 0.4.x #385
Comments
Morning @imankahbasi. Please see issue #353: at the moment relative magnitudes from You can use the The fundamental reason that the
The other error is my bad on documentation. Internally the signal-window is set to the length of the template; this should be the default, but should be ignored if the user provides a signal window. I'm going to leave this issue open to remind me to fix or remove the method. Of the fixes I prefer option 2, but this will require a new major version (0.5.0) because it will change the way that template objects work. To-Do
|
Morinig @calum-chamberlain . |
Correlation coefficients from lag calc are used by relative_magnitude when called from lag calc. Party.lag_calc updates the event object of each detection, so I think everything else you ask for is already implemented.
CJ Chamberlain, out of office
…________________________________
From: iman kahbasi <notifications@github.com>
Sent: Tuesday, April 21, 2020 7:08:58 PM
To: eqcorrscan/EQcorrscan <EQcorrscan@noreply.github.com>
Cc: Calum Chamberlain <calum.chamberlain@vuw.ac.nz>; Mention <mention@noreply.github.com>
Subject: Re: [eqcorrscan/EQcorrscan] Party.relative_magnitude or Party.lag_calc(relative_magnitude=True) broken in 0.4.x (#385)
Morinig @calum-chamberlain<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcalum-chamberlain&data=02%7C01%7Ccalum.chamberlain%40vuw.ac.nz%7C91b40d9449ef450c5e5808d7e5c2ddae%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C0%7C637230497464365156&sdata=q7kzXJBCmRaOZEVqSlr7yzIV8Bi40KeuIq53Wr7pULg%3D&reserved=0> .
Yes, I think the solution number 2 is good. It's easy and simple.
Although it will be also good if the output of Party.lag_calc() becomes an object like Party(), including re-picked phases, correlation coefficient of each phases and ... (or directly change Party()).
Then we can have rethreshold and other methods same as Party() for future investigations.
And we can use these correlation coefficients in relative_magnitude function as input.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feqcorrscan%2FEQcorrscan%2Fissues%2F385%23issuecomment-616996282&data=02%7C01%7Ccalum.chamberlain%40vuw.ac.nz%7C91b40d9449ef450c5e5808d7e5c2ddae%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C0%7C637230497464375158&sdata=dfVLsPMZwHU4Fg8S5KosbIVwicpuNJrdhuj%2BjH6BULE%3D&reserved=0>, or unsubscribe<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACTIM476UKPRUOJCR55C5R3RNVBAVANCNFSM4MMVU7MQ&data=02%7C01%7Ccalum.chamberlain%40vuw.ac.nz%7C91b40d9449ef450c5e5808d7e5c2ddae%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C0%7C637230497464375158&sdata=58a8FI2Kd%2BqsMoLss6qj%2FfgfOh%2B%2BwGspjAXbdEk4hiA%3D&reserved=0>.
|
Yes, but we can't access to the correlation coefficients in distinct stations and channels after implement lag_calc method. |
You can, they are in comments on the picks.
CJ Chamberlain, out of office
…________________________________
From: iman kahbasi <notifications@github.com>
Sent: Tuesday, April 21, 2020 9:44:53 PM
To: eqcorrscan/EQcorrscan <EQcorrscan@noreply.github.com>
Cc: Calum Chamberlain <calum.chamberlain@vuw.ac.nz>; Mention <mention@noreply.github.com>
Subject: Re: [eqcorrscan/EQcorrscan] Party.relative_magnitude or Party.lag_calc(relative_magnitude=True) broken in 0.4.x (#385)
Yes, but we can't access to the correlation coefficients in distinct stations and channels after implement lag_calc method.
My point is that we can access to them in all channel-stations that we use.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feqcorrscan%2FEQcorrscan%2Fissues%2F385%23issuecomment-617073602&data=02%7C01%7Ccalum.chamberlain%40vuw.ac.nz%7Ca2ce01d2566d4b69523208d7e5d8a60e%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C0%7C637230591050118195&sdata=bMKP05tEfrLxNdiIPvB91JtxzPLGmx5bqrQZJDr%2F8Ds%3D&reserved=0>, or unsubscribe<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACTIM45MPAXBI27CFNODLO3RNVTJLANCNFSM4MMVU7MQ&data=02%7C01%7Ccalum.chamberlain%40vuw.ac.nz%7Ca2ce01d2566d4b69523208d7e5d8a60e%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C0%7C637230591050128189&sdata=l%2BPB6Pue4GR231joVtoBbUN7FweMy8aQkS6lLEMnTyw%3D&reserved=0>.
|
Oooo, thank you. :) It will be also good if these correlation-coefficients be inheritance of the |
Remove relative magnitude methods for now, see issue #385
Closed by #412 - this issue requires more work changing Template objects and will (hopefully) be rekindled when I have the time, or someone else wants to chip in. |
* Start an FAQ * Remove relative magnitude methods for now, see issue #385 * Add SAC question. * implement magnitude-bias correction as in Schaff & Richards 2014 * add change-comment * stickler * syntax * fix L2-norm SNR * fix signal norm normalization (now RMS amplitude) * add python version to conda environment creation * Update installation.rst Simplify install and let conda work out Python versions. * Update faq.rst * Bump obspy version to 1.3.0 (#486) * Bump obspy version to 1.3.0 * Test on py 3.9, 3.10 * Encapsulate python versions in quotes * Remove future use * Temporarally pin pyfftw version * Use pip for pyfftw * Don't pin pyproj * Try using micromamba * Try using mamba * underscore * update maco env * update slow tests * Force h5py version to avoid dependency conflict * Debug macos omp linking error * Use conda * Add back in condarc * Don't run on 3.10 for now - macos requirements are not there Co-authored-by: flixha <felix.halpaap@uib.no> Co-authored-by: Tyler Newton <tjnewton.uni@gmail.com>
What do you need help with?
when I use lag_calc method on 'eqcorrscan.core.match_filter.party.Party' object and set relative_magnitude to True
This error occurs:
ValueError: zero-size array to reduction operation maximum which has no identity
in addition when I set signal_window
This error occurs:
relative_magnitude() got multiple values for keyword argument 'signal_window'
so can't I change it?
for example:
I used 24-hour data of a station and made a tribe with one event in this data.
And used the tribe in the same data to make a self detection.
In all steps everything is ok, except when I set relative_magnitude to True.
Provide an example so that we can reproduce your problem
problem 1
error is:
problem2
error is:
What help would you like?
what is the solution?
What is your setup? (please complete the following information):**
ubuntu 18.04
Python 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 21:52:21)
[GCC 7.3.0] :: Anaconda, Inc. on linux
0.4.0
The text was updated successfully, but these errors were encountered: