adjtomo / pyatoa

Python's Adjoint Tomography Operations Assistant (Pyatoa): a misfit assessment toolbox for full waveform tomography
GNU General Public License v3.0
20 stars 8 forks source link

Command line window and adjoint source maker #46

Open bch0w opened 5 months ago

bch0w commented 5 months ago

Motivation

It would be nice to have a command line tool for Pyatoa that wraps a processing script to generate misfit windows and adjoint sources.

A User could play around with windowing quickly without needing to mess around with writing their own scripts. This could also help wrap Pyatoa into bash scripts, in a similar way that the SPECFEM exectuable xcreate_adjsrc_traveltime operates

Implementation

Likely an external script installed as a project script (via pip) that points to data and runs through data, standardization etc. Users can also point to a YAML config file for more granular control of windowing/ adjoint source tuning parameters controlled by Pyflex and Pyadjoint.

An example command line call might look like

pyatoa --obs *.SAC --syn *.semd --min_period 10 --max_period 30 --win_start 15 --win_end 30 \
    --adjsrc_type cc_traveltime --output SEM/ --plot True

Users could manually input windows or let Pyflex automatically select them.