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

Estimate MRelative based on NetworkMagnitude #121

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Conversation

damb
Copy link
Collaborator

@damb damb commented Jul 19, 2022

@mmesim, here a draft implementation for #118.

Features and Changes:

  • By default estimate MRelative based on the preferred DataModel::Event magnitude i.e. the NetworkMagnitude. Alternatively, the estimation may be still performed based on the StationMagnitude. Note that this requires both the Event and the Origin including the preferred magnitude to be available within the EventParameters.
  • Whether to use the NetworkMagnitude or the StationMagnitude is configurable by means of the bindings configuration (i.e. on sensor location granularity).

Closes #118.

@damb damb added magnitude Refers to magnitude related topics enhancement New feature or request labels Jul 19, 2022
@mmesim
Copy link
Collaborator

mmesim commented Jul 21, 2022

👍 I think it is ok.

@mmesim
Copy link
Collaborator

mmesim commented Aug 22, 2022

@damb Question: When I compile this branch I still get the bug regarding phase association. Do you think it is necessary to remove it?

@damb damb force-pushed the feature/iss-118 branch from 32a572a to 0b8de4a Compare August 23, 2022 06:06
@damb
Copy link
Collaborator Author

damb commented Aug 23, 2022

I rebased the branch. The most recent changes from master should be available, now.

Daniel Armbruster added 7 commits August 23, 2022 06:18
Estimating `MRelative` based on the *NetworkMagnitude* (i.e. the
preferred event magnitude) by default. Optionally, `MRelative` still may
be estimated based on the StationMagnitude. Wether to use the
NetworkMagnitude or the StationMagnitude may be defined in the bindings
configuration (as a consequence, this parameter is configurable on
sensor location granularity).

Note that for estimating `MRelative` based on the NetworkMagnitude
requires both the Event and the Origin including the preferred event
magnitude to be available in the EventParameters data.

Besides, with this commit the sensor location identifiers referencing
StationMagnitudes (at `magnitude::Factory`) include the band and source
code.
Note that from now on the default uses the NetworkMagnitude when
estimating `MRelative`.
@mmesim
Copy link
Collaborator

mmesim commented Aug 23, 2022

@damb Vielen Dank! ❤️‍🔥

@damb
Copy link
Collaborator Author

damb commented Aug 30, 2022

@mmesim, I don't plan to make further changes here. Feel free to rebase/edit this feature branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request magnitude Refers to magnitude related topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MRelative: Use Network Magnitude (event magnitude) instead of Station Magnitude
2 participants