CHT: Set native and target magnitude and handle missing measure uncertainty info

Bug #993219 reported by matley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
matley

Bug Description

The user should be able to specify a target and a native magnitude scale.

E.g.

emr = EmpiricalMagnitudeRelation(native='mb', target='Mw')

It should be possible to specify if the native magnitude string is case-sensitive or not (as in some cases mb != Mb).

emr = EmpiricalMagnitudeRelation(native='mb', target='Mw', case_sensitive=True)

It should be possible to use simple wildcards or regular expression, e.g. (to consider mb, mb1x, etc.):

emr = EmpiricalMagnitudeRelation(native='mb*', target='Mw')

The user should be able to specify how to handle missing uncertainty.

1) The user should be able to specify when an event should be discarded from the results when the uncertainty is missing.
E.g.

emr.set_missing_uncertainty_handling( eqcatalogue.DISCARD )

2) The user should be able to specify a default value for missing info
emr.set_missing_uncertainty_handling( eqcatalogue.DEFAULT(4) )

3) When uncertainty infos are missing the user can specify to use the average/maximum/minimum uncertainty present in the measures for the same event.
emr.set_missing_uncertainty_handling( eqcatalogue.EVENT_MAXIMUM )

Provide tests for each use case.

description: updated
description: updated
description: updated
matley (matley)
description: updated
matley (matley)
summary: - CHT: mechanism to handle missing event data
+ CHT: mechanism to handle missing measure uncertainty
description: updated
matley (matley)
summary: - CHT: mechanism to handle missing measure uncertainty
+ CHT: Set native and target magnitude and handle missing measure
+ uncertainty info
matley (matley)
description: updated
matley (matley)
Changed in openquake:
assignee: nobody → matley (matley)
matley (matley)
Changed in openquake:
status: New → In Progress
importance: Undecided → Medium
matley (matley)
Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.