|
1 | 1 | # gio |
2 | 2 |
|
3 | | -Loading and saving various geoscience surface data formats (2D and 3D seismic horizons, grids, etc). |
| 3 | +[](https://github.com/agile-geoscience/gio/actions/workflows/build-test.yml) |
| 4 | +[](https://pypi.org/project/gio//) |
| 5 | +[](https://pypi.org/project/gio//) |
| 6 | +[](https://pypi.org/project/gio/) |
4 | 7 |
|
5 | | -Starting with: |
| 8 | +**Geoscience I/O for grids and horizons.** |
| 9 | + |
| 10 | +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). |
| 11 | + |
| 12 | +We've started with: |
6 | 13 |
|
7 | 14 | - OpendTect horizons |
8 | | -- Petrel horizons |
9 | | - - IESX format |
10 | | - - IRAP format |
11 | 15 | - ZMAP grids |
| 16 | +- Surfer grids |
| 17 | +- Petrel horizons |
12 | 18 |
|
13 | 19 | **What formats would you like to see? [Make an issue](https://github.com/agile-geoscience/gio/issues).** |
14 | 20 |
|
15 | 21 |
|
16 | 22 | ## Installation |
17 | 23 |
|
18 | | -This library is not on PyPI yet, so you'll have to install it from GitHub: |
| 24 | +This library is on PyPI, so you can install it with: |
19 | 25 |
|
20 | | - python -m pip install --upgrade https://github.com/agile-geoscience/gio/archive/master.zip |
| 26 | + pip install gio |
21 | 27 |
|
| 28 | + To get the latest unstable release, you can install it from GitHub: |
22 | 29 |
|
23 | | -## Contributing |
| 30 | + python -m pip install --upgrade https://github.com/agile-geoscience/gio/archive/develop.zip |
24 | 31 |
|
25 | | -Please get involved! We need: |
26 | 32 |
|
27 | | -- Example data (open access data only) |
28 | | -- Tutorials |
29 | | -- Documentation |
30 | | -- Parsers for various formats |
| 33 | +## Examples |
| 34 | + |
| 35 | +```python |
| 36 | +import gio |
| 37 | + |
| 38 | +da = gio.read_surfer(fname) |
| 39 | +da.plot() |
| 40 | +``` |
| 41 | + |
| 42 | +See more examples in the **notebooks** folder. |
| 43 | + |
| 44 | + |
| 45 | +## Contributing |
| 46 | + |
| 47 | +Please get involved! See [CONTRIBUTING.md](CONTRIBUTING.md). |
31 | 48 |
|
32 | 49 |
|
33 | 50 | ## Testing |
34 | 51 |
|
35 | | -You can run the tests (requires `pytest` and `pytest-cov`) with |
| 52 | +You can run the tests (requires `pytest` and `pytest-cov`) with |
36 | 53 |
|
37 | 54 | python run_tests.py |
38 | 55 |
|
39 | 56 |
|
| 57 | +## Building |
| 58 | + |
| 59 | +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/). |
| 60 | + |
| 61 | +Building the project requires `build`, so first: |
| 62 | + |
| 63 | + pip install build |
| 64 | + |
| 65 | +Then to build `gio` locally: |
| 66 | + |
| 67 | + python -m build |
| 68 | + |
| 69 | +The builds both `.tar.gz` and `.whl` files, either of which you can install with `pip`. |
| 70 | + |
40 | 71 | --- |
41 | 72 |
|
42 | 73 | © 2022 Agile Scientific, openly licenced under Apache 2.0 |
0 commit comments