Repository navigation
Classify tectonic type by Haynie et al. (2026); remove NSHM 2022 and NGA-SUB rules - #169
Open
lispandfound wants to merge 2 commits into
Open
lispandfound wants to merge 2 commits into
lispandfound wants to merge 2 commits into
Conversation
Within the Slab2 footprint, the probability of a subduction interface event is the product of an on-interface probability, exp(-dz^2 / 2 sigma^2) with sigma = 10 km for the vertical distance to the interface, a subduction slip probability, exp(-K^2 / 2 sigma^2) with sigma = 30 degrees for the minimum Kagan angle to slip on the interface in pure reverse or along the Pacific-Australia relative plate motion (NUVEL-1A), and whether the centroid is no deeper than 70 km. The remainder is upper plate above the interface and intraslab below it. Fixed depths and missing mechanisms leave the corresponding factor at 1. Adds kagan_angle, plate_motion_azimuth and subduction_slip_planes, and CMTClassifier.haynie_tectonic_type(_probabilities). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CMTClassifier.tectonic_type(centroid, nodal_plane_1, nodal_plane_2), the call gcmt-to-realisation makes, now classifies by the Haynie et al. rule. The planes are optional (no focal mechanism) and a fixed_depth keyword drops the on-interface factor. The Kagan angle is taken over both planes so the result does not depend on their order. Removes the NSHM 2022 rule (tectonic_type_probabilities' old signature, _is_interface_like and its constants), the NGA-SUB rule (nga_sub_tectonic_type(_probabilities), SlabZone, SlabZoneQuery, SlabModel.zone) and the haynie_* names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 of 3 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the tectonic type rules in
source_modelling/focal_mechanism.pywith the probabilistic upper-plate / interface / intraslab rule of Haynie et al. (2026), behind the existing public API.Within the Slab2 footprint:
exp(-Δz² / 2σ²)with σ = 10 km, where Δz is the vertical distance to the interface.exp(-K² / 2σ²)with σ = 30°, where K is the minimum Kagan angle between the event and slip on the interface. The interface slip is either (a) pure reverse or (b) oblique reverse along the Pacific–Australia relative plate motion (NUVEL-1A, DeMets et al. 1994).A fixed depth drops the on-interface factor, and a missing focal mechanism drops the slip factor.
API
Stable.
CMTClassifier.tectonic_type(centroid, nodal_plane_1, nodal_plane_2)keeps the call thatworkflow'sgcmt-to-realisation(and so the realtime simulation workflow) makes, andTectonicTypeis unchanged. The planes are now optional, and there is a newfixed_depthkeyword. The Kagan angle is the minimum over both planes, so plane order doesn't matter.New:
kagan_angle,plate_motion_azimuth,subduction_slip_planes.Removed:
tectonic_type_probabilities(depth_below_slab, interface_like, normal_like, sigma),_is_interface_likeand its constants.sigmakeyword ofCMTClassifier.tectonic_type_probabilities.nga_sub_tectonic_type(_probabilities),SlabZone,SlabZoneQueryandSlabModel.zone.Behaviour change
The 2003 Fiordland event (GeoNet 2103645; centroid −45.19, 166.83, 22 km) moves from interface to intraslab, at about 0.54 slab vs 0.46 interface. It sits 9 km below Slab2, and the plate-motion rake at Puysegur is very oblique (~167°).
workflow'stest_gcmt_to_realisation_tectonic_typeexpectssubduction_interfacefor this event and will need updating. A companionworkflowPR is being prepared for that.validation_small_magnitude/scripts/compare_sources.pycallstectonic_type_probabilities(..., sigma=0.0)and will need thesigmaargument dropped.Test plan
main: 862 passed🤖 Generated with Claude Code