NHL: complete Simple Fault Surface

Bug #949758 reported by Damiano Monelli
This bug report is a duplicate of:  Bug #919136: NHE: Implement the SimpleFaultSurface. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
New
Undecided
Unassigned

Bug Description

The Simple Fault Surface is almost complete (see pull request: https://github.com/gem/NHE/pull/9).

A major revision is required only for the method get_strike().

The method get_strike() is supposed to return the fault strike as the average azimuth of the fault trace segments.

The average azimuth can be computed following the approach described in http://en.wikipedia.org/wiki/Mean_of_circular_quantities.

That is segment's azimuths and lengths are interpreted as polar coordinates and converted to cartesian coordinates (therefore defining a set of cartesian vectors). The mean azimuth is given by the angle of the vector obtained by summing all vectors.

A prototype of the method is available here: https://github.com/monellid/HazardEngine/blob/master/fault.py, method getStrike()

Revision history for this message
Damiano Monelli (monelli) wrote :

Test data for get_strike method

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.