GithubHelp home page GithubHelp logo

ascii2segy's Introduction

ascii2segy

usage: ascii2segy.py [-h] [-o OUTFILE] [-s SAMPLE_RATE] [-m MAX_TIME] [--dtype DTYPE] [-d SEISMIC_DIMENSIONS] [-e] [-v VERBOSITY] [-t] infile

ascii2segy

This script uses segpy-rewrite to convert velf ascii files to segy files. Please use 64 bit python for large files as data is loaded into memory.

Run with -h to get more information on parameters.

Outputs

A segy file containing the velocities from the input ascii file.

Inputs

Example input file format:

###############################################################################
#BEGIN HEADER
#X
#Y
#Z (time)
#FLOAT  "Stacking Velocity"
#FLOAT  "XLINE"
#FLOAT  "INLINE"
#END HEADER
   7618446.0      141544.0             0.0          1510.0       10040.0        2060    
   7618446.0      141544.0            40.0          1510.0       10040.0        2060
   7618446.0      141544.0            80.0          1510.0       10040.0        2060

Examples

ascii2segy.py test.csv -o test.sgy ascii2segy.py -h ascii2segy.py test.csv -s 40 -m 5000 -c 15 -n 4 -d 2 -v 3 -e 1

Installation

Make sure you have 64bit python 3.3 installation Install the requirements listed in requirements.txt. Note that this uses segpy 2.0.0a2 from github.com/rob-smallshire/segpy which you can install using the command below:

pip install git+git://github.com/sixty-north/segpy/tree/91562fddfd6d8424ee4161f4417982243512c150

In a command propmt with python64 3.3 install and test:

pip install -r requirements.txt
python ascii2segy.py ./test_data/test_input.tsv

License

This inherits it's license from segpy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.