pytomoatt.src_rec.SrcRec.update

SrcRec.update(mode='mean')[source]

Update SrcRec.src_points, SrcRec.rec_points, SrcRec.rec_points_cr and SrcRec.rec_points_cs with procedures:

  1. remove receivers by new sources

  2. remove sources by new receivers

  3. update num_rec

  4. reset index

  5. update unique sources and receivers

  6. remove duplicate receivers by source

Parameters:

mode (str, optional) – “first” to keep only the first occurrence of duplicate receivers, “mean” to average travel time, defaults to “mean”