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

[289] Max bin in target MFD is off by one #293

Closed voj closed 6 months ago

voj commented 6 months ago

Resolves #289

For sections with a maximum magnitude lower than the global min mag, getCharSubSeismoOnFaultMFD_forEachSection() should have generated MFDs to just under the bin of the min mag. However, it created MFDs up to and including the min mag bin.

As a result, the target and solution MFD had basically lost the min mag bin. This change rectifies the problem.

In the process of debugging this issue, a script was added to run a crustal inversion using a toshi JSON file.

voj commented 6 months ago

@chrisdicaprio this branch is ready for you to test.