Skip to main content

ArchPy

Documentation Status logo

A hierarchical stochastic geological modeling tool in Python

Installation

ArchPy can be installed with pip :

pip install geoarchpy

This will install ArchPy and the necessary dependencies. To install all the dependencies (including optional ones) :

pip install geoarchpy[all]

ArchPy can also be installed from the source code. To do so, clone the repository and run the following command in the main directory :

pip install .

Alternatively, it is possible to add ArchPy path directly in the python script with sys :

sys.path.append("path where ArchPy is") 

and then import ArchPy. In such case, it is necessary to install all the dependencies manually.

Concerning the interactivity of the plots, it is necessary to install trame as well as some trame subpackages. This can be done with the following command :

pip install trame
pip install trame-vuetify
pip install trame-vtk

Requirements

Works and tested with 3.8 <= python <= 3.11

The following python packages are absolutely necessary:

  • Geone
  • matplotlib (tested with 3.10.8)
  • numpy (tested with 1.26.4)
  • scipy (tested with 1.17.1)
  • sklearn (tested with 1.8.0)
  • pandas (tested with 2.3.3)
  • shapely (tested with 2.1.2)

These are not required but highly recommanded. They are installed with ArchPy by default.

  • pyvista (tested with 0.46.5)
  • yaml (tested with 6.0.3)
  • rasterio (tested with 1.4.4)
  • geopandas (tested with 1.1.3)
  • ipywidgets (tested with 8.1.8)
  • flopy (tested with 3.10.0)

Examples

There is some example notebooks :

  • 01_basic : a folder where simple and basics ArchPy functionnalities are described
  • 02_3D_ArchPy : a complete 3D ArchPy model example as well as diverse archpy capabilities regarding the simulation of the units
  • 03_Article_example : a synthetical example shown in original ArchPy article
  • 04_hierarchies : an exemple with many hierarchical units to test ArchPy capabilities
  • 05_mps_surfaces : an example how to use MPS to simulate the units surfaces
  • 06_cross_validation : a notebook that present how to perform a cross-validation directly with ArchPy
  • 07_geological_map : this notebook presents how to integrate and use a geological in an ArchPy model
  • 08_inference : little guide how to use archpy inference tools to estimate surface parameters (no facies parameters for now) --> Note that for now, the interface is not working due to incompatibilities issues with ipywidgets.
  • 09_interface : little exemple of an interface to call an preexisting archpy model as well as drawing a new model extension.
  • 10_rotation : an example of how to create a rotated model
  • 11_modflow_coupling : an example of how to couple ArchPy with Modflow
  • 12_modflow_energy : How to couple ArchPy to model energy models with MODFOLOW 6
  • 13_modflow_energy : How to couple ArchPy to model transport models with MODFOLOW 6
  • 14_archpy2modflow : example shown in the archpy2modflow paper

Paper

A paper was published on the ArchPy concept and its different capabilities. The paper was written with the version 0.1 of ArchPy. It is available with the following link.

list of references using ArchPy

Schorpp, L., Egli, N., Straubhaar, J., & Renard, P. (2025). ArchPy and MODFLOW: Toward a General Integration of Heterogeneity into Groundwater Models. Groundwater, 63(6), 902-916. link

Schorpp, L., Straubhaar, J., & Renard, P. (2024). From lithological descriptions to geological models: an example from the Upper Aare Valley. Frontiers in Applied Mathematics and Statistics, 10, 1441596 link.

Neven, A., & Renard, P. (2023). A novel methodology for the stochastic integration of geophysical and hydrogeological data in geologically consistent models. Water Resources Research, 59(7). link

Neven, A., Schorpp, L., & Renard, P. (2022). Stochastic multi-fidelity joint hydrogeophysical inversion of consistent geological models. Frontiers in Water, 4, 989440. link

Schorpp, L., Straubhaar, J., & Renard, P. (2022). Automated hierarchical 3D modeling of quaternary aquifers: the ArchPy approach. Frontiers in Earth Science, 10, 884075. link

Contact

For any questions regarding ArchPy, please contact me at ludovic.schorpp@unine.ch

Metadata

Release files for Geoarchpy 1.2.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Geoarchpy 1.2.12
File Size Uploaded
geoarchpy-1.2.12.tar.gz 588.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Geoarchpy 1.2.12
File Interpreter ABI Platform
geoarchpy-1.2.12-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / geoarchpy-1.2.12.tar.gz

Download URL geoarchpy-1.2.12.tar.gz
Size 588.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5785e531d436f2eea784d8189e7323408765f97908488c11d8136d98405e873c
BLAKE2b-256 checksum
How to use checksums
8f3bc8cbceb159a58e2737e552012c80014f5e0b90dfef66b09bd75b953d82bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / geoarchpy-1.2.12-py3-none-any.whl

Download URL geoarchpy-1.2.12-py3-none-any.whl
Size 981.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f002b0895cd073863f2b190396d48d571394ca4e176ef1f06c6b8d0fb466557
BLAKE2b-256 checksum
How to use checksums
5d96b5b9ca4eab80f51bdbb43c8216a072a33e9e7552f989afc7ab76c66fd73d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.2.12 This release

2 release files

1.2.11

2 release files

1.2.10

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page