Skip to main content

Seismic phase picker.

Project description

PickAx

PyPI

PickAx: a simple seismic picker, when you just need to dig out a few arrivals.

Start

pickax -h
Hi PickAx!
usage: pickax [-h] [-v] [-l LOADER] [-s SEIS]

Pickax, really simple seismic phase picker.

options:
  -h, --help            show this help message and exit
  -v, --verbose         increase output verbosity
  -l LOADER, --loader LOADER
                        Initialization loader script, run at startup
  -s SEIS, --seis SEIS  Seismogram file, loaded at startup

For example, using simple.py to initialize pickax, load data and open the picker window:

pickax -l simple.py

Or to view just a single file, ie quick look:

pickax -s JKYD.mseed

Keys

  • c: Create a generic pick at the current mouse location
  • a: Create a P pick at the current mouse location
  • s: Create a S pick at the current mouse location
  • d: Display your picks
  • D: Display all picks
  • f: Apply next filter
  • F: Apply previous filter
  • x: Zoom in, first use marks one edge, second zooms in
  • X: Zoom back out, double time displayed
  • z: Return to original autozoom
  • w: Shift seismogram to left (west)
  • e: Shift seismogram to right (east)
  • t: Print current time, amplitude at mouse position
  • v: Go to next data
  • r: Go to previous data
  • q: Quit
  • h: Display this help, but you knew that, right?

Configuration

PickAx tries to be very simple and do just one thing, just like a pickax is good for digging a hole in red clay, but is just one of the tools in your toolshed. So don't forget to use your shovels, screwdrivers and lawnmowers for the things they do better. Basically all data management is handed off to the startup script. By setting the finishFn, you can save picks however you want (or not at all), and load in the next seismogram for display. Setting the filters allows toggling between different ways of processing the seismogram. The creation_info provides default creation info for the pick, primarily for author or agency_id, defaulting to author=os.getlogin().

See simple.py for an example of setting up pickax and loading data.

Filter functions

Filters are often a way of applying actual time series filters, but can be anything that modifies the waveform. They are each a simple dictionary with a name and fn. The function will be called with four arguments. First is a copy of the original stream, so modification in place is safe. The second is the current filtered stream, so filters can build on the previous if that is what you want. Third is the name for the current filter function, and last is the filter index, just for reference. If a stream is returned, that becomes the current displayed stream, but if None is returned, then it assumes the original was modified in place.

Finish function

The finish function is called whenever the user quits, goes to next or previous, ie q, v or r. It is called with three arguments, first is the QuakeML Event, which contains picks, including both new picks and any existing picks. Second is the current stream, useful to get the channel. Last is the command, one of "quit", "next", or "prev".

build hints

conda create -n pickax python=3.10
conda activate pickax
python3 -m pip install --upgrade build
/bin/rm -f dist/* && python3 -m build
pip3 install dist/seismic_pickax-*-py3-none-any.whl --force-reinstall

or if all deps are already installed, much faster:

pip3 install dist/seismic_pickax-*-py3-none-any.whl --force-reinstall --no-deps

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seismic-pickax-0.2.0.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

seismic_pickax-0.2.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file seismic-pickax-0.2.0.tar.gz.

File metadata

  • Download URL: seismic-pickax-0.2.0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for seismic-pickax-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b91b067fdda61736af02f1f6f0ef08830fac5aac3de09b8da18fb7a162446406
MD5 9007a35e267050251e47c27ea3021f00
BLAKE2b-256 0057671c503c2d0f4446b27141da18a32cf590e690316cc8c2bb8148779701e9

See more details on using hashes here.

File details

Details for the file seismic_pickax-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for seismic_pickax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20436ccf124b620ed1b2caccc0ac926d153d575ba1428e86d51023dbfd506ac8
MD5 8916849440dd68b08e5016561357c647
BLAKE2b-256 6e1d125d062d425efc7da71d06a10528e45a6758077d2b588d159974d8a2d6c1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page