Skip to content

JintaoLee-Roger/segyConvert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This repository is deprecated and has moved to a new and user-friendly repository: cigsegy.

segyConvert

English 中文

A tool with C++ to read 3D seismic data in SEG-Y format and convert 3D seismic data in binary format to SEG-Y format.

segy format <------> binary format

About SEGY-Y format: SEG-Y rev 1, SEG-Y rev 2 and A comparison of all version.

Some code references Google's respository: segy-stack.

cmdline.h is from Tanaka's cmdline.

Usage

Compile

# readSegy
g++ -std=c++11 -O3 -o printTextHeader segy.cpp printTextHeader.cpp
g++ -std=c++11 -O3 -o scan scan.cpp segy.cpp
g++ -std=c++11 -O3 -o convertToDat convertToDat.cpp segy.cpp

# addSegy
g++ -std=c++11 -O3 -o convertToSegy addSegy.cpp convertToSegy.cpp

The four files are also avaliable in Releases

Run

The usage of printTextHeader, scan and convertToDat see readSegy

The usage of convertToSegy see addSegy

TODO List

  • 4-byte IBM floating-point to 4-byte IEEE floating-point
  • 4-byte IEEE floating-point to 4-byte IBM floating-point
  • Determine whether it is three-dimensional or two-dimensional data
  • add python API