A PyVista (and VTK) interface for the Open Mining Format package (omf) providing Python 3D visualization and useable mesh data structures for processing datasets in the OMF specification.
Documentation is hosted at https://opengeovis.github.io/omfvista/
Check out the Example Notebook on NBViewer! Or launch the Notebook on MyBinder to run the code yourself!
Installation
Installation is simply:
pip install omfvista
All necessary dependencies will be installed alongside omfvista. Please note that this package heavily leverages the PyVista package.
Questions & Support
For general questions about the project, its applications, or about software usage, please create an issue in the pyvista/pyvista-support repository where the PyVista community can collectively address your questions. You are also welcome to join us on join @OpenGeoVis on our Slack workspace under the #omfvista channel or send one of the developers an email. The project support team can be reached at info@opengeovis.org.
Example Use
Be sure to check out the Example Notebook that demos omfvista or our Example Gallery in the documentation! Here’s an example using the sample data hosted in the OMF repository.
import pyvista as pv
import omfvista
project = omfvista.load_project('test_file.omf')
project
Once the data is loaded as a pyvista.MultiBlock dataset from omfvista, then that object can be directly used for interactive 3D visualization from PyVista:
project.plot(multi_colors=True)
An interactive scene can be created and manipulated to create a compelling figure. First, grab the elements from the project:
# Grab a few elements of interest and plot em up!
vol = project['Block Model']
assay = project['wolfpass_WP_assay']
topo = project['Topography']
dacite = project['Dacite']
Then create a 3D scene with these spatial data and apply a filtering tool from PyVista to the volumetric data:
# Create a plotting window
p = pv.Plotter(notebook=False)
# Add our datasets
p.add_mesh(topo, cmap='gist_earth', opacity=0.5)
p.add_mesh(assay, color='blue', line_width=3)
p.add_mesh(dacite, color='yellow', opacity=0.6)
# Add the volumetric dataset with a thresholding tool
p.add_mesh_threshold(vol)
# Add the bounds axis
p.show_bounds()
# Redner the scene in a pop out window
p.show()
Metadata
Release files for omfvista 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| omfvista-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / omfvista-0.3.1-py3-none-any.whl
| Download URL | omfvista-0.3.1-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f87baf306fc5560f061f0a8023e9fac518c1d9f1be429be518e78e57bdcc8963
|
|
BLAKE2b-256 checksum How to use checksums |
fa62d94f7219ba17708b62983e606a7649642c60a284eaa16baf2b3dd981c57a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|