gempy-project / gempy

GemPy is an open-source, Python-based 3-D structural geological modeling software, which allows the implicit (i.e. automatic) creation of complex geological models from interface and orientation data. It also offers support for stochastic modeling to address parameter and model uncertainties.
https://gempy.org
European Union Public License 1.2
986 stars 235 forks source link

Gempy model export to numpy #893

Closed WATCH0620 closed 6 months ago

WATCH0620 commented 6 months ago

Hello, I would like to ask how to export the model generated by gempy to numpy.ndarray?

javoha commented 6 months ago

Hi, you can access the different ndarrays of the solution using: geo_data.solutions.raw_arrays

I guess the most important results would be the vertices of the grid and the corresponding solutions:

geo_data.solutions.raw_arrays.lith_block
geo_data.solutions.raw_arrays.vertices
javoha commented 6 months ago

Hopefully resolved, feel free to reopen if issue persists.