-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.R
35 lines (25 loc) · 993 Bytes
/
main.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#' Main control script
#'
#' @description Use this script for controlling the processing.
#'
#' @author [Lisa Bald], [[email protected]]
#'
rm(list=ls())
if (Sys.info()[["nodename"]] == "PC19594") {
root_folder = "D:/Natur40/spatialMaxentPaper/"
}else if(Sys.info()[["nodename"]] == "pc19543"){
root_folder = "/home/bald/casestudies/spatialMaxentPaper/"
}else {
library(rprojroot)
root_folder = find_rstudio_root_file()
}
library(envimaR)
source(paste0(root_folder, "src/functions/000_setup.R"))
#---------------------------------
# execute pipeline
run_maxent(region="SA",ncores=60, toggleLayer="")
run_maxent(region="SWI", ncores=60,toggleLayer="togglelayertype=CALC")
run_maxent(region="AWT", ncores=60, toggleLayer="")
run_maxent(region="NSW", ncores=60, toggleLayer="togglelayertype=vegsys")
run_maxent(region="NZ", ncores=60, toggleLayer=" togglelayertype=age togglelayertype=toxicats")
run_maxent(region="CAN", ncores=60, toggleLayer="togglelayertype=ontveg")