Learn R Programming

An enhanced version of the semi-empirical, spatially distributed emission and transport model PhosFate implemented in R and C++. It is based on the D-infinity, but also supports the D8 flow method. The currently available substances are suspended solids (SS) and particulate phosphorus (PP). A major feature is the allocation of substance loads entering surface waters to their sources of origin, which is a basic requirement for the identification of critical source areas and in consequence a cost-effective implementation of mitigation measures.

Copyright (C) 2021 RPhosFate authors

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Installation

Install the latest release from CRAN:

install.packages("RPhosFate")

Install the development version from GitHub (requires Rtools on Windows and the remotes package):

remotes::install_github("gisler/RPhosFate")

Semantic versioning

Releases of this project are versioned following the rules of SemVer.

Copy Link

Version

Install

install.packages('RPhosFate')

Monthly Downloads

196

Version

2.0.1

License

AGPL (>= 3)

Maintainer

Gerold Hepp

Last Published

March 22nd, 2025

Functions in RPhosFate (2.0.1)

getParameter,RPhosFate-method

Get parameter(s)
saveState,RPhosFate-method

Save state
transport,RPhosFate-method

Transport
img2tif

Convert ERDAS IMAGINE to GeoTIFF raster files
setParameter,RPhosFate-method

Set parameter(s)
getLayer,RPhosFate-method

Get layer
demoProject

Demonstration project
calibrationQuality,RPhosFate-method

Calibration quality
erosion,RPhosFate-method

Erosion
erosionPrerequisites,RPhosFate-method

Erosion prerequisites
emission,RPhosFate-method

Emission
DEMrelatedInput

DEM related input
RPhosFate-class

RPhosFate class
autoCalibrate2,RPhosFate-method

Two dimensional automatic model calibration
autoCalibrate,RPhosFate-method

One dimensional automatic model calibration
RPhosFate

Initialise project
snapGauges,RPhosFate-method

Snap gauge(s)
firstRun,RPhosFate-method

First run
transportPrerequisites,RPhosFate-method

Transport prerequisites
subsequentRun,RPhosFate-method

Subsequent run