Skip to content
Notebooks with examples and demos of segyio
Branch: master
Clone or download
mrava87 Merge pull request #8 from mrava87/master
Added example with Volve data to pylops/01_seismic_inversion.ipynb
Latest commit 80ef30f May 21, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
data/basic Clean up for segy_quicklook May 10, 2019
notebooks Fixed TRACE_SAMPLE_COUNT in trace headers May 21, 2019
.gitignore Added pylops example on Volve data May 21, 2019
LICENSE Initial commit Mar 8, 2019 Renamed basic notebook3 and added to README May 12, 2019


Interactive notebooks with examples and tutorials using the segyio library for reading, manipulating and writing SEG-Y files.



In order to ensure that everyone can run the notebooks and produce the expected results, each notebook (or set of notebooks sharing a common Python environment) has to be placed in a subdirectory within the notebooks directory alongside with a requirements.txt and/or environment.yml file to be used to create the same virtualenv and/or condaenv used by the author of the notebook.


Tutorials are organized in subfolders of the notebooks directory as follows:


  • 01 - Basic tutorial - demonstrate how to read two F3 seismic volumes as NumPy arrays; manipulate the similarity to create a discontinuity/fault volume; create a fault mask and display a couple of amplitude time slices with superimposed faults; write the fault volume to SEG-Y file using re-using the headers from the input file.

  • 02 - Segy quicklook - demonstrate how to transfer binary and trace headers in pandas dataframes and visualize headers and data with matplotlib

  • 03 - Basic Segy editing - demonstrate how to perform manipulations of traces length, both resampling and cutting.



Data are organized in subfolders of the data directory. Subfolders should have the same name of the corresponding folders in the notebooks tree. Note that some files may exceed the size allowed by github. In that case it is required to provide a set of instructions in the notebook on how to download the file and it will be assumed that the file will be placed by the user in the correct subdirectory of data.



The seismic cube used in this example is too big to be included in this repo. A set of commands to download the file and place it in the data directory is provided within the notebook.

Run the notebooks interactively in Binder

To open and run notebooks interactively in an executable environment, just click the button below.


You can’t perform that action at this time.