SlownessModel.add_slowness(p, is_p_wave)[source]

Add a ray parameter to the slowness sampling for the given wave type.

Slowness layers are split as needed and P and S sampling are kept consistent within fluid layers. Note, this makes use of the velocity model, so all interpolation is linear in velocity, not in slowness!

  • p (float) The slowness value to add, in s/km.
  • is_p_wave (bool) Whether to add to the P wave (True) or the S wave (False) sampling.