Gio
Read and write subsurface data files describing surfaces, grids and horizons.
Install / Use
/learn @softwareunderground/GioREADME
gio
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
- ZMAP grids
- Surfer grids
- Petrel horizons
What formats would you like to see? Make an issue.
Installation
This library is on PyPI, so you can install it with:
pip install gio
To get the latest unstable release, you can install it from GitHub:
python -m pip install --upgrade https://github.com/agilescientific/gio/archive/develop.zip
Basic usage
In general, there's a reader for each supported file format. The reader produces an xarray.DataArray, or xarray.Dataset if the format supports multiple surfaces in one file.
import gio
da = gio.read_surfer(fname)
da.plot()
Documentation
See the documentation for more examples, and for help developing gio or making contributions back to this project.
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
