mtuq.Dataset

class mtuq.Dataset(streams=[], id=None, tags=[])[source]

Bases: list

Seismic data container

A list of ObsPy streams in which each stream corresponds to a single seismic station

Note

Each supported file format has a corresponding reader that creates Datasets (see mtuq.io.readers).

Public Methods

append

Appends stream to Dataset

apply

Applies a function to all streams

copy

Return a shallow copy of the list.

get_components

Returns list of components from all streams

get_origins

Returns origin metadata from all streams as a list of mtuq.event.Origin objects

get_stations

Returns station metadata from all streams as a list of mtuq.station.Stations objects

get_stats

Returns trace metadata in nested lists

map

Maps function to all streams

max

Returns maximum absolute amplitude over all traces

select

Selects streams that match the given station or origin

sort_by_azimuth

Sorts in-place by source-receiver azimuth

sort_by_distance

Sorts in-place by hypocentral distance

sort_by_function

Sorts in-place by user-supplied function

tag_add

Appends string to tags list

tag_remove

Removes string from tags list

write

Writes dataset to disk