obspy.imaging.scripts.scan

Note

This script automatically installs during the setup procedure with the name $ obspy-scan. For more info on the command line options, please run $ obspy-scan --help. Alternatively you can also execute $ python -m obspy.imaging.scripts.scan.

Scan a directory to determine the data availability.

Scan all specified files/directories, determine which time spans are covered for which stations and plot everything in summarized in one overview plot. Start times of traces with available data are marked by crosses, gaps are indicated by vertical red lines, and overlaps are indicated by blue lines. The sampling rate must stay the same for each station, but may vary between the stations.

Directories can also be used as arguments. By default they are scanned recursively (disable with “-n”). Symbolic links are followed by default (disable with “-i”). Detailed information on all files is printed using “-v”.

In case of memory problems during plotting with very large datasets, the options –no-x and –no-gaps can help to reduce the size of the plot considerably.

Gap data can be written to a NumPy npz file. This file can be loaded later for optionally adding more data and plotting.

Supported formats: All formats supported by ObsPy modules (currently: MSEED, GSE2, SAC, SACXY, WAV, SH-ASC, SH-Q, SEISAN). If the format is known beforehand, the reading speed can be increased significantly by explicitly specifying the file format (“-f FORMAT”), otherwise the format is autodetected.

See also the example in the Tutorial section: https://tutorial.obspy.org