GNS-Science / nzshm-opensha

renamed successor to old nshm-nz-opensha , all python history removed to new nzshm-runzi repo
MIT License
0 stars 2 forks source link

[315] Calculate joint rupture length #321

Closed voj closed 4 months ago

voj commented 4 months ago

Implements #315

Opensha calculates rupture lengths by summing up trace length over all sections. For subduction ruptures, not all sections contribute to the length. This PR enables MixedRuptureSetBuilder to calculate rupture length correctly based on the algorithm used in NZSHM22: for a subduction cluster, find the most up-dip row and sum the trance length of all sections in that row.

Note that this might change the lengths of pure crustal ruptures based on floating point artifacts.