-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0. mainConfiguration.R
57 lines (47 loc) · 2.29 KB
/
0. mainConfiguration.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
## -------------------------------------------------------------------------------
## -------------------------------------------------------------------------------
##
## ClimateData 3.0
## R Pipelines for climate data request and processing
##
## ------------------------------------
##
## theMarineDataScientist
## github.com/jorgeassis
## medium.com/themarinedatascientist
## medium.com/@jorgemfa
##
## -------------------------------------------------------------------------------
## -------------------------------------------------------------------------------
nCores <- detectCores() / 2
idwPower <- 2
interpNMax <- 16
mainFolder <- "." # "/home/jorgeassis/Projects/Bio-ORACLE" # "/media/Bathyscaphe/Bio-ORACLE/"
tempFolder <- "/home/jorgeassis/Projects/Bio-ORACLE/tempFolder/" # "/media/Bathyscaphe/Bio-ORACLE/tempFolder/"
tempFolder <- paste0(tempFolder,"Rnd_",paste0(sample(LETTERS, 3, TRUE),collapse=""))
rawDataFolder <- c("/media/Bathyscaphe/Raw Data [Environment]/")
projectName <- "BioOracle"
exportFolders <- c("/media/Jellyfish/Bio-ORACLE/Decade/","/media/Bathyscaphe/Bio-ORACLE/")
exportFolder <-exportFolders[1]
mainResolution <- 0.05 # 0.05 // 0.25
bathymetryFolder <- "Dependencies/SpatialData/Rasters"
bathymetryFiles <- c("BathymetryDepthMinRes005.tif","BathymetryDepthMeanRes005.tif","BathymetryDepthMaxRes005.tif") # 025 005
outcomeExtent <- c(-180,180,-90,90)
cat("\n")
cat("\n")
cat("# Raster resolution:",res(raster(paste0(bathymetryFolder,"/",bathymetryFiles[1])))[1],"\n")
cat("# Raster extent:",outcomeExtent)
listVariables <- read.csv("Dependencies/listVariables.csv",sep=";", stringsAsFactors = F)
listModels <- read.csv("Dependencies/listModels.csv",sep=";", stringsAsFactors = F)
listModelsFinal <- read.csv("Dependencies/listModelsFinal.csv",sep=";", stringsAsFactors = F)
listExperiments <- read.csv("Dependencies/listExperiments.csv",sep=";", stringsAsFactors = F)
listDataSources <- read.csv("Dependencies/listDataSources.csv",sep=";", stringsAsFactors = F)
listRealms <- c("ocean","ocnBgchem","ocnBgChem","atmos","seaIce")
## ------------------------------
## ------------------------------
cat("\n")
cat("# Cores attributed:",nCores,"\n")
cat("\n")
cat("# Reading configuration file // Project",projectName,"\n")
## ------------------------------
## ------------------------------