Skip to content
Snippets Groups Projects
stenzel's avatar
Fabian Stenzel authored
added function argument replace_input_file_names to handle different file names without the need to change the metric_files.yml file
3fd6ad78
History

biospheremetrics

The goal of biospheremetrics is to provide functions to calculate and plot the biosphere integrity metrics BioCol and EcoRisk in an R package based on outputs of LPJmL. biospheremetrics utilizes the read functions of the lpjmlkit package.

Installation lpjmlkit

The dependency package lpjmlkit is currently not available from CRAN, therefore it needs to be installed manually.

Either install from PIK repository:

install.packages('lpjmlkit', repos = c('https://pik-piam.r-universe.dev', 'https://cloud.r-project.org'))

or checkout and install from github (https://github.com/PIK-LPJmL/lpjmlkit).

Installation biospheremetrics

You can install biospheremetrics by git cloning this repository:

git clone https://gitlab.pik-potsdam.de/stenzel/biospheremetrics.git <path_to_biospheremetrics>

and install via devtools:

devtools::install("<path_to_biospheremetrics>")
library("biospheremetrics")

alternatively, you can also load it from source:

devtools::load_all("<path_to_biospheremetrics>"")

Scripts

The ./scripts folder contains scripts to be used on the PIK cluster to compute longer timeseries with higher RAM demand.

Example

For examples, see the vignette.