geoh5py is a Python library providing a high-level interface to read, write, and manipulate geoh5, an open file format for geoscientific data. It supports various geoscience objects like points, curves, surfaces, grids, drillholes, and 3D block models. Version 0.12.1 supports Python >=3.10,<4.0, and is actively maintained by Mira Geoscience with regular releases (approx. monthly).
pip install geoh5pyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a geoh5 workspace, adds a PointData object with vertices and a data attribute, then closes.
Upgrade Python to 3.10+ or use geoh5py 0.9.2 (last supporting Python 3.9).
Always access data by name, e.g., obj.get_data('my_data'), not by index.Use 'with Workspace('file.geoh5') as workspace:' or call workspace.close() after operations.Manually convert BGR to RGB when using colour values.
Use 'from geoh5py.workspace import Workspace'.
For creation, ensure the file path is writable; for reading, check the file exists.
Close the geoh5 file in any other application before opening with geoh5py.
Ensure the length of data values equals the number of base elements (e.g., vertices for PointData).