Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SIMO_output
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clblatte
SIMO_output
Commits
65eb1533
Commit
65eb1533
authored
4 years ago
by
clblatte
Browse files
Options
Downloads
Patches
Plain Diff
data preperation for rcp0 V7
parent
13255b88
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Main_cPouta.R
+4
-4
4 additions, 4 deletions
Main_cPouta.R
MultiForest/check_opt_data.Rmd
+21
-7
21 additions, 7 deletions
MultiForest/check_opt_data.Rmd
with
25 additions
and
11 deletions
Main_cPouta.R
+
4
−
4
View file @
65eb1533
...
...
@@ -23,10 +23,10 @@ path <- paste0(getwd())
on_cPouta
<-
FALSE
### Do the SQL queries for the DB (only needed first time!)
Process_SQL_Query
<-
FALS
E
Process_SQL_Query
<-
TRU
E
### Export the defined columns from DB as CSV
Process_CSV_export_from_DB
<-
FALS
E
Process_CSV_export_from_DB
<-
TRU
E
...
...
@@ -34,7 +34,7 @@ Process_CSV_export_from_DB <- FALSE
# Define name of genereated Optimization CSV file
# ------------------------------------------------
outp_name
<-
"rslt_RCP0_FIN_V
4
"
outp_name
<-
"rslt_RCP0_FIN_V
7
"
...
...
@@ -59,7 +59,7 @@ if(on_cPouta == TRUE) {
}
else
{
# for Windows
inputFolder
<-
paste
(
path
,
"input_data/FIN"
,
sep
=
"/"
)
outputFolder
<-
paste
(
path
,
"output/
RCP0
_FIN"
,
sep
=
"/"
)
outputFolder
<-
paste
(
path
,
"output/
MF
_FIN"
,
sep
=
"/"
)
}
...
...
This diff is collapsed.
Click to expand it.
MultiForest/check_opt_data.Rmd
+
21
−
7
View file @
65eb1533
...
...
@@ -5,18 +5,23 @@ date: "7/28/2020"
output: html_document
---
# RCP0 whole Finland - version 7
### (rslt_RCP0_FIN_V7.csv)
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
### Running on cPouta or WIN local
on_cPouta <-
FALS
E
on_cPouta <-
TRU
E
### Set path to input files
if(on_cPouta == TRUE) {
# for pouta
datapath <- "/media/volume/outp_rcp0_test/"
path <- "/home/ubuntu/workspace/MultiForest2/"
# path <- paste0(getwd(),"/")
...
...
@@ -43,11 +48,11 @@ library(egg)
```{r , echo=FALSE}
#
poutaxy <- read.csv(paste0(path, "rslt_RCP0_FIN_V
3
_XY.csv"), sep = ";", header = TRUE, stringsAsFactors = FALSE)
#
pouta <- read.csv(paste0(path, "rslt_RCP0_FIN_V
3
.csv"), sep = ";", header = TRUE, stringsAsFactors = FALSE)
poutaxy <- read.csv(paste0(
data
path, "rslt_RCP0_FIN_V
7
_XY.csv"), sep = ";", header = TRUE, stringsAsFactors = FALSE)
pouta <- read.csv(paste0(
data
path, "rslt_RCP0_FIN_V
7
.csv"), sep = ";", header = TRUE, stringsAsFactors = FALSE)
poutaxy <- read.csv(paste0(path, "rslt_test_XY.csv"), sep = ";", header = TRUE, stringsAsFactors = FALSE)
pouta <- read.csv(paste0(path, "rslt_test.csv"), sep = ";", header = TRUE, stringsAsFactors = FALSE)
#
poutaxy <- read.csv(paste0(
data
path, "rslt_test_XY.csv"), sep = ";", header = TRUE, stringsAsFactors = FALSE)
#
pouta <- read.csv(paste0(
data
path, "rslt_test.csv"), sep = ";", header = TRUE, stringsAsFactors = FALSE)
```
...
...
@@ -715,8 +720,6 @@ plotfkt("N_where_D_gt_40")
## Indicator: prc_V_deciduous
## STILL WITH VALUES ABOVE 100% !!!
```{r , message=FALSE}
plotfkt("prc_V_deciduous")
...
...
@@ -872,7 +875,18 @@ plotfkt_harvest("Harvested_V_pulp_under_bark")
# Save as data set for the Optimization framework
```{r , echo=TRUE}
# For the Optimization (Jupyter Notebook) the data can be further ZIP compressed.
# csv for optimization
write.table(rslt.final, paste0(datapath, "rslt_RCP0_FIN_V7_no_outlier.csv" ),
sep = ";",
row.names = F,
col.names = TRUE)
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment