SimpleSeisPlot is a Python tool for plotting seismic waveforms from data files in familiar formats like seg2. This repository is designed to make it easy to visualize seismic data using Obspy, a powerful Python library for seismology.
Before you get started, make sure you have the following prerequisites installed:
- Obspy: Obspy is a Python toolbox for seismology that provides many useful functionalities for working with seismic data.
To use SimpleSeisPlot, follow these steps:
- Clone this repository to your local machine.
git clone https://github.com/your-username/SimpleSeisPlot.git
-
Move your seismic data files into the "data" folder within the cloned repository.
-
Open your terminal or command prompt and navigate to the repository's directory.
cd SimpleSeisPlot
- Run the
ssp.py
script with the name of your data file as an argument.
python3 main.py <file_name>
Replace <file_name>
with the name of your seismic data file located in the "data" folder.
Here's an example of how to use SimpleSeisPlot:
python3 ssp.py example.seg2 <filtering>
This command will generate plots of the seismic waveforms from the example.seg2
file located in the "data" folder. In addition, in case you want to filter your data first, it filters the data by a bandpass (bp) filter between 2 and 5. Other types are 'lp' and 'hp' (for example 'lp5', 'bp6.5,10' or 'hp3').
python3 ssp.py <your file in folder 'data'> bp1.5,6
If you would like to contribute to SimpleSeisPlot, feel free to open issues or pull requests. We welcome any contributions that can make this tool even better.
- Thanks to the Obspy development team for providing a powerful library for working with seismic data.
Happy seismic waveform plotting with SimpleSeisPlot!