Skip to content
Snippets Groups Projects
Commit 5a556d2d authored by Fabian Stenzel's avatar Fabian Stenzel
Browse files

Merge branch 'review_paper' of gitlab.pik-potsdam.de:stenzel/biospheremetrics into review_paper

parents de462155 5cd5fda4
No related branches found
No related tags found
2 merge requests!6Merge reviewed package into main,!5Merge review_paper version to master
...@@ -28,7 +28,7 @@ alternatively, you can also load it from source: ...@@ -28,7 +28,7 @@ alternatively, you can also load it from source:
devtools::load_all("/p/projects/open/Fabian/LPJbox/biospheremetrics_paper/") devtools::load_all("/p/projects/open/Fabian/LPJbox/biospheremetrics_paper/")
``` ```
## Example ## Scripts
The `./scripts` folder contains scripts to be used on the PIK cluster to The `./scripts` folder contains scripts to be used on the PIK cluster to
compute longer timeseries with higher RAM demand. compute longer timeseries with higher RAM demand.
...@@ -40,8 +40,6 @@ The following application example calculates the metrics BioCol and EcoRisk: ...@@ -40,8 +40,6 @@ The following application example calculates the metrics BioCol and EcoRisk:
```R ```R
library(devtools) library(devtools)
library(lpjmlkit) library(lpjmlkit)
library(sf)
library(terra)
devtools::load_all("/p/projects/open/Fabian/LPJbox/biospheremetrics_paper/") devtools::load_all("/p/projects/open/Fabian/LPJbox/biospheremetrics_paper/")
...@@ -51,7 +49,7 @@ out_folder <- "/p/projects/open/Fabian/Metrics/" ...@@ -51,7 +49,7 @@ out_folder <- "/p/projects/open/Fabian/Metrics/"
lpj_input <- "/p/projects/lpjml/input/historical/" lpj_input <- "/p/projects/lpjml/input/historical/"
# read grid # read grid
grid <- lpjmlkit::read_io(paste0(run_folder,"grid.bin.json")) grid <- lpjmlkit::read_io(paste0(run_folder,"grid.bin.json"))$data
# calculate cell area # calculate cell area
lat <- grid[, , 2] lat <- grid[, , 2]
lon <- grid[, , 1] lon <- grid[, , 1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment