Metadata-Version: 2.1
Name: segysak
Version: 0.3.4
Summary: SEG-Y Seismic Data Inspection and Manipulation Tools using Xarray
Home-page: https://github.com/trhallam/segysak
Author: SEGY-SAK Developers
Author-email: segysak@gamil.com
License: GPL3
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: segyio
Requires-Dist: xarray
Requires-Dist: dask
Requires-Dist: distributed
Requires-Dist: tqdm
Requires-Dist: scipy
Requires-Dist: click
Requires-Dist: h5netcdf
Requires-Dist: setuptools-scm
Requires-Dist: addict
Requires-Dist: more-itertools (>=8.0)
Provides-Extra: docs
Requires-Dist: sphinx ; extra == 'docs'
Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
Requires-Dist: sphinxcontrib-programoutput ; extra == 'docs'
Requires-Dist: nbsphinx (>=0.7) ; extra == 'docs'
Requires-Dist: pandoc ; extra == 'docs'
Requires-Dist: nbconvert (!=5.4) ; extra == 'docs'
Requires-Dist: nbformat ; extra == 'docs'
Requires-Dist: sphinx-copybutton ; extra == 'docs'
Requires-Dist: rtds-action ; extra == 'docs'
Requires-Dist: jupytext ; extra == 'docs'
Requires-Dist: pyvista ; extra == 'docs'
Requires-Dist: ipython ; extra == 'docs'
Requires-Dist: ipykernel (>=4.8.0) ; extra == 'docs'
Requires-Dist: jupyter-client (>=5.2.2) ; extra == 'docs'
Requires-Dist: ipywidgets ; extra == 'docs'
Requires-Dist: matplotlib ; extra == 'docs'
Provides-Extra: notebook
Requires-Dist: ipython ; extra == 'notebook'
Requires-Dist: ipykernel (>=4.8.0) ; extra == 'notebook'
Requires-Dist: jupyter-client (>=5.2.2) ; extra == 'notebook'
Requires-Dist: ipywidgets ; extra == 'notebook'
Requires-Dist: matplotlib ; extra == 'notebook'
Requires-Dist: pyvista ; extra == 'notebook'
Provides-Extra: testing
Requires-Dist: flake8 ; extra == 'testing'
Requires-Dist: pytest ; extra == 'testing'
Requires-Dist: hypothesis ; extra == 'testing'
Requires-Dist: affine ; extra == 'testing'
Requires-Dist: pytest-cases ; extra == 'testing'

================================
**SEGY-SAK** - |latest-version|
================================

|build-status| |python-version| |code-style| |license| |docs| |slack|

.. image:: https://img.shields.io/badge/swung-slack-blueviolet?link=https://softwareunderground.org/&link=swung.slack.com/

Access the full documentation for SEGY-SAK from `readthedocs <https://segysak.readthedocs.io/en/latest/>`__

.. image:: https://github.com/trhallam/segysak/raw/main/docs/_static/logo_small.png
  :alt: LOGO

*SEGY-SAK* aims to be your Python Swiss Army Knife for Seismic Data.

To do this *SEGY-SAK* offers two things; a commandline interface (CLI) for
inspecting and converting SEG-Y data to a more friendly format called
NETCDF4, and by providing convenience functions for the data using
`xarray <http://xarray.pydata.org/en/stable/>`_.
We try hard to load the data the same way every time so your functions will
work no-matter which cube/line you load. The `xarray` conventions we use are
outlined in the documentation.

Why NETCDF4? Well, NETCDF4 is a fancy type of enclosed file binary format that
allows for faster indexing and data retrieval than SEGY. We try our best to
scan in the header information and to make it easy (or easier) to load SEGY
in different formats, different configuration (2D, 2D gathers, 3D, 3D gathers).
We do all this with the help of `segyio <https://github.com/equinor/segyio>`_
which is a lower level interface to SEGY. If you stick to our ``xarray`` format
of files we also offer utility functions to return to SEG-Y so you can export to
other software.

Current Capabilities
-----------------------

- **CLI**:

  - Convert 2D, 3D and gathers type SEG-Y to NETCDF4 and back. The NETCDF4 files
    are one line open with ``xarray.open_dataset``.

  - Extract sub-volumes via cropping xline and inline.

  - Read EBCIDC header.

  - Perform a limited header scan.

* **Xarray and Python API**:

  * Load 2D, 3D and gathers type SEG-Y to a ``xarray.Dataset``.

  * Access header information and text headers in Python with convenience
    functions.

  * Select traces by UTM X and Y coordinates.

Installation
-------------

*SEGY-SAK* can be installed by using pip or python setuptools, we also provide an ``environment.yml`` for use
with conda.

Python Package Index via ``pip``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

From the command line run the ``pip`` package manager

.. code-block:: shell

   pip install segysak

Install from source
^^^^^^^^^^^^^^^^^^^

Clone the SEGY-SAK Github repository and in the top level directory run setuptools via

.. code-block:: shell

   python setup.py install


CLI Quick Start
-----------------

The command line interface (CLI) provides an easy tool to convert or
manipulate SEG-Y data. In your Python command-line environment it can be
accessed by calling `segysak`.

For a full list of options run

.. code-block:: shell

   segysak --help

Any SEG-Y files converted using the ``convert`` command. For example

.. code-block:: shell

   segysak convert test.segy

Can be loaded into *Python* using ``xarray``.

.. code-block:: python

   test = xarray.open_dataset('test.SEISNC')


Complete Documentation
----------------------

The complete documentation for *SEGY-SAK* can be found at
`readthedocs <https://segysak.readthedocs.io/en/latest/>`__

.. |latest-version| image:: https://img.shields.io/pypi/v/segysak?color=2d5016&label=pypi_version&logo=Python&logoColor=white
   :alt: Latest version on PyPi
   :target: https://pypi.org/project/segysak/

.. |build-status| image:: https://github.com/trhallam/segysak/workflows/python_build_test/badge.svg
   :alt: Build status
   :target: https://github.com/trhallam/segysak/actions

.. |python-version| image:: https://img.shields.io/pypi/pyversions/segysak
   :alt: Python versions

.. |code-style| image:: https://img.shields.io/badge/code_style-black-000000.svg
   :alt: code style: black
   :target: https://github.com/psf/black

.. |license| image:: https://img.shields.io/badge/license-GPLv3-brightgreen
   :alt: license
   :target: https://github.com/trhallam/segysak/blob/main/LICENSE

.. |docs| image:: https://readthedocs.org/projects/segysak/badge/?version=latest
   :target: https://segysak.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. |slack| image:: https://img.shields.io/badge/slack-help-blueviolet?logo=slack
   :alt: help
   :target: https://swung.slack.com/messages/segysak/


