obspy.taup.tau_branch.TauBranch.difference

TauBranch.difference(topBranch, indexP, indexS, sMod, minPSoFar, ray_params)[source]

Generates a new tau branch by “subtracting” the given tau branch from this tau branch (self). The given tau branch is assumed to by the upper part of this branch. indexP specifies where a new ray corresponding to a P wave sample has been added; it is -1 if no ray parameter has been added to topBranch. indexS is similar to indexP except for a S wave sample. Note that although the ray parameters for indexP and indexS were for the P and S waves that turned at the source depth, both ray parameters need to be added to both P and S branches.