Skip to content

Commit 1e75df8

Browse files
committed
zmap reading via lib
1 parent 48e47ab commit 1e75df8

File tree

7 files changed

+22712
-21
lines changed

7 files changed

+22712
-21
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@
44

55
There are several important ways you can help; here are some examples:
66

7-
- Submitting bug reports and feature requests: see [Issues](https://github.com/agile-geoscience/kosu/issues).
7+
- Submitting bug reports and feature requests: see [Issues](https://github.com/agile-geoscience/gio/issues).
88
- Proposing code for bug fixes and new features, then [making a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests).
9+
- Contributing data files to test against. See below.
910
- Fixing typos and generally improving the documentation.
1011
- Writing tutorials, examples, and how-to documents.
1112

13+
14+
## Contributing data files
15+
16+
This is a data-driven project and data files are always helpful, especially if they differ substantially from examples we already have.
17+
18+
Please ensure that data is open access and provide a licence file with it. please also make them as small as possible, preferably well under 1MB.
19+
20+
1221
## Code of conduct
1322

1423
We're fortunate to be part of a large professional community that conducts itself with mutual respect and consideration for others. Agile's [Code of Conduct](https://github.com/agile-geoscience/corporate/blob/main/CODE_OF_CONDUCT.md) is part of protecting these features for everyone, everywhere. Please read it.
1524

25+
1626
## Authorship
1727

1828
If you contribute a pull request to the project, please add yourself to `AUTHORS.md`.

README.md

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,73 @@
11
# gio
22

3-
Loading and saving various geoscience surface data formats (2D and 3D seismic horizons, grids, etc).
3+
[![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)
4+
[![PyPI status](https://img.shields.io/pypi/status/gio.svg)](https://pypi.org/project/gio//)
5+
[![PyPI versions](https://img.shields.io/pypi/pyversions/gio.svg)](https://pypi.org/project/gio//)
6+
[![PyPI license](https://img.shields.io/pypi/l/gio.svg)](https://pypi.org/project/gio/)
47

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:
613

714
- OpendTect horizons
8-
- Petrel horizons
9-
- IESX format
10-
- IRAP format
1115
- ZMAP grids
16+
- Surfer grids
17+
- Petrel horizons
1218

1319
**What formats would you like to see? [Make an issue](https://github.com/agile-geoscience/gio/issues).**
1420

1521

1622
## Installation
1723

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:
1925

20-
python -m pip install --upgrade https://github.com/agile-geoscience/gio/archive/master.zip
26+
pip install gio
2127

28+
To get the latest unstable release, you can install it from GitHub:
2229

23-
## Contributing
30+
python -m pip install --upgrade https://github.com/agile-geoscience/gio/archive/develop.zip
2431

25-
Please get involved! We need:
2632

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).
3148

3249

3350
## Testing
3451

35-
You can run the tests (requires `pytest` and `pytest-cov`) with
52+
You can run the tests (requires `pytest` and `pytest-cov`) with
3653

3754
python run_tests.py
3855

3956

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+
4071
---
4172

4273
© 2022 Agile Scientific, openly licenced under Apache 2.0

0 commit comments

Comments
 (0)