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
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
NumPyarrays; 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.
- 01 - Seismic inversion with segyio and pylops - demonstrate how to download and read a SEG-Y file, perform colored inversion to a portion of the data and saved the inversion result in a brand new SEG-Y.
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
Two seismic volumes in SEGY format from the F3 dataset, offshore Netherlands, licensed CC-BY-SA: a similarity volume, and an amplitude volume (with dip steered median filter smoothing applied)
A 2D seismic line from the USGS NPRA Seismic Data Archive
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
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.