Overview
REMAP (Chernyavsky & Wortmann, 2007, DOI 10.1029/2006GC001442) provides an easy to use interface for 1-dimensional reaction-transport modeling in porous media, and provides explicit support for kinetic stable isotope fractionation calculations.
The original program was written as matlab program. Remappy provides a python wrapper to the original code which can be run via oct2py.
News:
- April 6th: v 0.0.0.8 build process now uses setuptools which should automatically create an executable remap.py script.
- April 5th: v 0.0.0.4, installation path is now updated during installation, non-python files are now included in installation script. Updated installation instructions
- March 30th: Initial release
Installation
python -m pip install remappywill install all necessary files and dependencies- you can now import remap into your python code (see below)
- The install process should have created a standalone remap.py script which you can run from the command line. Try
remap.py --help. This works for linux, and should work for Mac and Windows as well. If it fails you need to follow your os specific instructions on how to create an executable python program. On linux, it is sufficient to linkremap.pyto a directory which is in your path (often/usr/local/bin/) and set is a executable. Tools like https://datatofish.com/executable-pyinstaller/ will also work on Mac and Windows.
Usage
- remap.py: This behaves similar to the original remap but provides extended command-line parsing options, run
remap.py --helpfor details - you can also import the library and use it inside of your own python code. The remap data will be returned as pandas dataframe.
import remap
import pathlib as pl
import pandas as pd
fn: str = "hg.rmp" # remap config file
cwd: pl.Path = pl.Path.cwd() # get the current working directory
fqfn: pl.Path = pl.Path(f"{cwd}/{fn}") # fully qualified file name
if not fqfn.exists(): # check if file exist
raise FileNotFoundError(f"Cannot find file {fn}")
# run remap and return results as dataframe
df: pd.DataFrame = remap.run_remap(str(fname))
- or use the
oct2pyinterface directly
from oct2py import octave
octave.addpath("/path/to/remap.m")
fn = "hg.rmp" # name of remap configuration file
# call remap
[c, conc, r, v, par] = octave.start_remap(fn, nout=5)
Documentation
See the pdf-docs folder for the original REMAP documentation (see, e.g. https://github.com/uliw/remappy)
Todo
- port more matlab code to python
- provide more examples
- do more testing
License
remappy: reaction-transport modeling Copyright (C), 2022 Ulrich G. Wortmann
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Metadata
Release files for remappy 0.0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| remappy-0.0.0.9.tar.gz | 25.5 kB | Without provenance | Details for remappy-0.0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| remappy-0.0.0.9-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for remappy-0.0.0.9-py2.py3-none-any.whl |
Total release size: 54.2 kB
Release files / remappy-0.0.0.9.tar.gz
| Download URL | remappy-0.0.0.9.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
352ff23e85e36ac084a74ee9d31feb3196128d1bce584ba43a7b0c3bf83e307c
|
|
BLAKE2b-256 checksum How to use checksums |
ab541a03fb57b2b0b893104b11a1c80d090f63b72206e71fffa14f09384f27a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / remappy-0.0.0.9-py2.py3-none-any.whl
| Download URL | remappy-0.0.0.9-py2.py3-none-any.whl |
|---|---|
| Size | 28.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
25beed9eff16cbfbc104e42f2b625ed2c333ea89a83ab21fab718f24edad984b
|
|
BLAKE2b-256 checksum How to use checksums |
25093e8668d03c9d33c40f951129ee3086fefd38040f3f81ae2ead2ecf48c41b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for remappy 0.0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.