function of dascore.utils.io source

    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.


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