SEismic DAta MANipulation is a SEGY and SEGD files manipulating library.
Version | Read | Write |
---|---|---|
SEGY Rev 2 | ✔️ | ✔️ |
SEGY Rev 1 | ✔️ | ✔️ |
SEGY Rev 0 | ✔️ | ✔️ |
SEGD Rev 3 | ✔️ | ❌ |
SEGD Rev 2 | ✔️ | ✔️ |
SEGD Rev 1 | ✔️ | ❌ |
Python headers in inlude path for Python library.
git clone --recurse-submodules https://github.com/andalevor/sedaman
mkdir sedaman/build
cd sedaman/build
cmake .. -DCMAKE_BUILD_TYPE=Release
make sedaman
git clone --recurse-submodules https://github.com/andalevor/sedaman
mkdir sedaman/build
cd sedaman/build
cmake .. -DCMAKE_BUILD_TYPE=Release
make pysedaman
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)