Created
June 5, 2020 01:43
-
-
Save josephwinston/031bbbfd0bcb2509da90431f2a4931a4 to your computer and use it in GitHub Desktop.
simple seg-y viewer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import segyio | |
import napari | |
# wget http://s3.amazonaws.com/open.source.geoscience/open_data/newzealand/Taranaiki_Basin/Keri_3D/Kerry3D.segy | |
segyfile = '../../data/pylops/Kerry3D.segy' | |
f = segyio.open(segyfile, | |
iline=segyio.tracefield.TraceField.SourceEnergyDirectionExponent, | |
xline=segyio.tracefield.TraceField.CDP) | |
d = segyio.cube(f) | |
with napari.gui_qt(): | |
viewer = napari.Viewer(ndisplay=3) | |
viewer.add_image(d) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment