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.
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 enablesMixedRuptureSetBuilder
to calculate rupture length correctly based on the algorithm used inNZSHM22
: 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.