Skip to content

SEgy DAta MANipulation is a SEGY rev 2.0 and SEGD rev 3 files manipulating library.

License

Notifications You must be signed in to change notification settings

andalevor/sedaman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sedaman

SEismic DAta MANipulation is a SEGY and SEGD files manipulating library.

Supported versions

Version Read Write
SEGY Rev 2 ✔️ ✔️
SEGY Rev 1 ✔️ ✔️
SEGY Rev 0 ✔️ ✔️
SEGD Rev 3 ✔️
SEGD Rev 2 ✔️ ✔️
SEGD Rev 1 ✔️

Prerequsites

Python headers in inlude path for Python library.

Build C++ library

git clone --recurse-submodules https://github.com/andalevor/sedaman
mkdir sedaman/build
cd sedaman/build
cmake .. -DCMAKE_BUILD_TYPE=Release
make sedaman

Build Python library

git clone --recurse-submodules https://github.com/andalevor/sedaman
mkdir sedaman/build
cd sedaman/build
cmake .. -DCMAKE_BUILD_TYPE=Release
make pysedaman

Python example

import pysedaman
isegy = pysedaman.ISEGY("stack.sgy")
length = 0.0
h1 = isegy.read_header()
for trace in isegy:
    h2 = trace.header()
    length += math.sqrt((h2.get("CDP_X")-h1.get("CDP_X"))**2+(h2.get("CDP_Y")-h1.get("CDP_Y"))**2)
    h1 = h2

print(length)

andalevor@gmail.com

About

SEgy DAta MANipulation is a SEGY rev 2.0 and SEGD rev 3 files manipulating library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published