obspy.signal.spectral_estimation.PPSD.add_npz

PPSD.add_npz(filename, allow_pickle=False)[source]

Add previously computed PPSD results to current PPSD instance.

Load previously computed PPSD results from a compressed numpy binary in npz format, written with obspy.signal.spectral_estimation.PPSD.save_npz() and add the information to the current PPSD instance. Before adding the data it is checked if the data was computed with the same settings, then any time periods that are not yet covered are added to the current PPSD (a warning is emitted if any segments are omitted).

Parameters:
  • filename (str) – Name of numpy .npz file(s) with stored PPSD data. Wildcards are possible and will be expanded using glob.glob().

  • allow_pickle (bool) – Allow the pickle protocol to be used when de-serializing saved PPSDs. This is only required for npz files written by ObsPy versions less than 1.2.0.