Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AmirMardan/segy_loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segy Loader

This is a package that allows me to load segy files and select the appropriate bytes for acquisition parameters and convert the data to a h5 file. This h5 file has a seis extension which can be loaded using load_seis (check the examples) and be manipulated easily.

Load a segy file

from path_loader import data_path  # noqa: F401
from segy_loader import load_segy

load_segy()

segy_loader

After saving as a seis file, it can be loaded using segy_loader.io.load_seis which returns a Seis object with multiple functionalities.

from segy_loader.io import load_seis
path = osp.abspath(osp.join(osp.dirname(__file__), "../data/seis/42.seis"))

data = load_seis(path)

This only load the seis file, but data allows easy data manipulation and sorting.

seismic

Examples are available in the Example folder.

Installation

  1. Install Python 3.11.6
    pyenv install 3.11.6
    If you don't have pyenv installed, use
    curl https://pyenv.run | bash
    first.

Using pyrpoject.toml

  1. Install Poetry and add it to your system's path.
    curl -sSL https://install.python-poetry.org | python3 -
  2. Add it to your system's path
    echo 'export PATH="$HOME/Library/Application Support/pypoetry/venv/bin:$PATH"' >> ~/.zshrc
    You can check if it is installed using poetry --version
  3. Create a virtual environment
     poetry env use python3.11.6
  4. Activate the virtual environment
     source $(poetry env info --path)/bin/activate
  5. Install requirements
     poetry install
  6. Call load_segy()
    python -c "from segy_loader import load_segy;load_segy()" 

Using setup.py

  1. Create a virtual environemnt
    pyenv virtualenv 3.11.6 0_segy_loader_venv
    You can check the environments using pyenv virtualenvs or pyenv versions
  2. Activate the virtual environment
    pyenv activate 0_segy_loader_venv
  3. Install requirements
    python -m pip install -r requirements.txt
  4. Install segy_loader
    python -m pip install -e .
    or
    python -m pip install git+https://github.com/AmirMardan/segy_loader.git
  5. Call load_segy()
    python -c "from segy_loader import load_segy;load_segy()" 

About

A tool for loading segy file and create a seis file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages