mtuq.io.clients.CPS_SAC.Client¶
- class mtuq.io.clients.CPS_SAC.Client(path_or_url=None, model=None, include_mt=True, include_force=False)[source]¶
Bases:
mtuq.io.clients.base.Client
CPS database client
Usage
To instantiate a database client, supply a path or url:
from mtuq.io.clients.CPS_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 CPS directory tree with naming convention `ZZZz/RRRRrZZZz.EXT, where ZZZz gives the depth of the source, RRRRr gives the horizontal offset between source and receiver, and EXT is the file extension related to so-called fundamental sources.
Note
The above directory tree convention permits us to represent offsets from 0 to 9999.9 km in 0.1 km increments and origin depths from 0 to 999.9 km in 0.1 km increments
Public Methods
Extracts Green's tensors from database
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.