-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
22,712 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,73 @@ | ||
# gio | ||
|
||
Loading and saving various geoscience surface data formats (2D and 3D seismic horizons, grids, etc). | ||
[![Build and test](https://github.com/agile-geoscience/gio/actions/workflows/build-test.yml/badge.svg)](https://github.com/agile-geoscience/gio/actions/workflows/build-test.yml) | ||
[![PyPI status](https://img.shields.io/pypi/status/gio.svg)](https://pypi.org/project/gio//) | ||
[![PyPI versions](https://img.shields.io/pypi/pyversions/gio.svg)](https://pypi.org/project/gio//) | ||
[![PyPI license](https://img.shields.io/pypi/l/gio.svg)](https://pypi.org/project/gio/) | ||
|
||
Starting with: | ||
**Geoscience I/O for grids and horizons.** | ||
|
||
The goal of this project is to load and save various geoscience surface data formats (2D and 3D seismic horizons, grids, etc). The interchange formats are the `xarray.DataArray` (and `xarray.Dataset` where we need a collection of arrays). This format is convenient because it allows us to store a NumPy array with Pandas-like indexing (as opposed to ordinary NumPy positional indexing). | ||
|
||
We've started with: | ||
|
||
- OpendTect horizons | ||
- Petrel horizons | ||
- IESX format | ||
- IRAP format | ||
- ZMAP grids | ||
- Surfer grids | ||
- Petrel horizons | ||
|
||
**What formats would you like to see? [Make an issue](https://github.com/agile-geoscience/gio/issues).** | ||
|
||
|
||
## Installation | ||
|
||
This library is not on PyPI yet, so you'll have to install it from GitHub: | ||
This library is on PyPI, so you can install it with: | ||
|
||
python -m pip install --upgrade https://github.com/agile-geoscience/gio/archive/master.zip | ||
pip install gio | ||
|
||
To get the latest unstable release, you can install it from GitHub: | ||
|
||
## Contributing | ||
python -m pip install --upgrade https://github.com/agile-geoscience/gio/archive/develop.zip | ||
|
||
Please get involved! We need: | ||
|
||
- Example data (open access data only) | ||
- Tutorials | ||
- Documentation | ||
- Parsers for various formats | ||
## Examples | ||
|
||
```python | ||
import gio | ||
|
||
da = gio.read_surfer(fname) | ||
da.plot() | ||
``` | ||
|
||
See more examples in the **notebooks** folder. | ||
|
||
|
||
## Contributing | ||
|
||
Please get involved! See [CONTRIBUTING.md](CONTRIBUTING.md). | ||
|
||
|
||
## Testing | ||
|
||
You can run the tests (requires `pytest` and `pytest-cov`) with | ||
You can run the tests (requires `pytest` and `pytest-cov`) with | ||
|
||
python run_tests.py | ||
|
||
|
||
## Building | ||
|
||
This repo uses PEP 517-style packaging. [Read more about this](https://setuptools.pypa.io/en/latest/build_meta.html) and [about Python packaging in general](https://packaging.python.org/en/latest/tutorials/packaging-projects/). | ||
|
||
Building the project requires `build`, so first: | ||
|
||
pip install build | ||
|
||
Then to build `gio` locally: | ||
|
||
python -m build | ||
|
||
The builds both `.tar.gz` and `.whl` files, either of which you can install with `pip`. | ||
|
||
--- | ||
|
||
© 2022 Agile Scientific, openly licenced under Apache 2.0 |
Oops, something went wrong.