Installation

From pip

gridmarthe is available on PyPi and can be installed with:

pip install gridmarthe

From conda-forge (with conda or mamba)

Not yet available.

From the source

Get the sources:

git clone https://gitlab.com/brgm/hydrogeological-modelling/marthe-tools/gridmarthe.git
cd gridmarthe

Gridmarthe uses Fortran sources for efficient I/O operations on Marthe grid files. These sources need to be compiled in order to use the lecsem module in gridmarthe. The F90 sources are compiled with f2py (so make sure to have a compiler [gfortran for example] and make installed on your system/python environment).

With pip

Then, for developper mode (ie with editable flag) just use the Makefile provided to do the compilation process and python installation.

make

Or, for a standard installation (not with editable flag):

pip install .

Verification

At this point, the following command should not give any error:

python3 -c "import gridmarthe"