obspy_to_patch

function of dascore.utils.io source

obspy_to_patch(
    stream ,
    dim = distance,
)-> ‘PatchType’

Convert an obspy stream to a patch.

Each trace must have some common value in its stats dict which can be used to create a new dimension. Also, each trace must have the same data length.

Parameters

Parameter Description
stream The input ObsPy Stream object.
dim The new dimension whose data is contained in the stats dict.