Skip to content
Snippets Groups Projects
Select Git revision
  • multi-gitter-gfz-name-repl
  • multi-gitter-branch
  • main default protected
  • enhancement/add_sqa
  • 17-initially-set-up-sqa
  • bugfix/fix_warp_ndarray_crash
  • bugfix/fix_warp_ndarray
  • feature/add_localCS_compatibility
  • v0.23.1
  • v0.23.0
  • v0.22.3
  • v0.22.2
  • v0.22.1
  • v0.22.0
  • v0.21.1
  • v0.21.0
  • v0.20.2
  • v0.20.1
  • v0.20.0
  • v0.19.1
  • v0.19.0
  • v0.18.1
  • v0.18.0
  • v0.17.9
  • v0.17.8
  • v0.17.7
  • v0.17.6
  • v0.17.5
28 results

py_tools_ds

  • Clone with SSH
  • Clone with HTTPS
  • RedModRphree

    This package includes a number of utility functions to efficiently work with PHREEQC, for which we use the phreeqc R package from USGS, available from CRAN, trying to keep at minimum the external dependencies.

    Recommended citation

    More informations about the package and a nice way to acknowledge this software is by citing the following paper:

    De Lucia, M., Kühn, M. (2021): Geochemical and reactive transport modelling in R with the RedModRphree package - Advances in Geosciences, 56, 33-43, https://doi.org/10.5194/adgeo-56-33-2021
    

    Installation

    In R, the quickest way is to install RedModRphree directly from this repository (git must be installed already on your system) using packages devtools or remotes:

    ## if you need to install devtools or remotes, just type in the R command line, e.g.:
    ## install.packages("remotes")
    remotes::install_gitlab("delucia/RedModRphree", host="https://git.gfz-potsdam.de")
    

    Optional: to install the package in a specific directory (which R must know about, e.g., specifying the variable R_LIBS_USER in the file $HOME/.Renviron:

    R_LIBS_USER="~/MyRPackageDir"
    

    then, in R:

    remotes::install_gitlab("delucia/RedModRphree", host="https://git.gfz-potsdam.de", lib="~/MyRPackageDir")
    

    This should (hopefully) take care of all dependencies.

    Usage

    In your R session, just type:
    library(RedModRphree) ## loads package and dependencies
    

    There are a bunch of demo scripts and datasets provided by the package:

    demo(package="RedModRphree") ## displays a list of available demo scripts
    
    ## A simple Pourbaix diagram 
    demo("demo-Pourbaix",package="RedModRphree") 
    
    ## CAUTION: these take 1-2 minutes each
    ## some platform-independent parallelization is activated by default
    demo("demo-equilibrium",package="RedModRphree") 
    demo("demo-kinetics",package="RedModRphree") 
    
    ## CAUTION: these take 2-3 minutes each!
    demo("demo-eq-surr-RF",package="RedModRphree") 
    demo("demo-kin-surr",package="RedModRphree") 
    
    ## Instructions to obtain the code to the gmd2020-445 paper submitted to Geoscientific Model Development
    demo("demo-gmd2020-445",package="RedModRphree")