mtuq.io.clients.FK_SAC.Client

class mtuq.io.clients.FK_SAC.Client(path_or_url=None, model=None, include_mt=True, include_force=False)[source]

Bases: mtuq.io.clients.base.Client

FK database client

Usage

To instantiate a database client, supply a path or url:

from mtuq.io.clients.FK_SAC import Client
db = Client(path_or_url)

Then the database client can be used to generate GreensTensors:

greens_tensors = db.get_greens_tensors(stations, origin)

Note

GreensTensor`s are obtained by reading precomputed time series from an FK directory tree. Such trees contain SAC files organized by model, event depth, and event distance, as used by the `Zhu1994 software packages.

Public Methods

get_greens_tensors

Extracts Green's tensors from database

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

_get_greens_tensor