From 04f247582f635e492ffccf1ed67c9041e49eef06 Mon Sep 17 00:00:00 2001
From: Francesco Sabatini <francesco.sabatini@idiv.de>
Date: Thu, 5 Mar 2020 18:37:30 +0100
Subject: [PATCH] created 05_ExtractEnv

---
 code/05_ExtractEnvironment.Rmd | 52 ++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 code/05_ExtractEnvironment.Rmd

diff --git a/code/05_ExtractEnvironment.Rmd b/code/05_ExtractEnvironment.Rmd
new file mode 100644
index 0000000..7d33761
--- /dev/null
+++ b/code/05_ExtractEnvironment.Rmd
@@ -0,0 +1,52 @@
+---
+title: "sPlot 3.0 - Environmental Data"
+author: "Francesco Maria Sabatini"
+date: "2/14/2020"
+output: html_document
+---
+
+<center>
+  ![](/data/sPlot/users/Francesco/_sPlot_Management/splot-long-rgb.png "sPlot Logo")
+</center>
+
+  
+**Timestamp:** `r date()`  
+**Drafted:** Francesco Maria Sabatini  
+**Revised:**  
+**version:** 1.0
+
+This report documents the construction of the header file for sPlot 3.0. It is based on dataset sPlot_3.0.2, received on 24/07/2019 from Stephan Hennekens.    
+
+
+```{r results="hide", message=F, warning=F}
+knitr::opts_chunk$set(echo = TRUE)
+library(tidyverse)
+library(viridis)
+library(readr)
+library(xlsx)
+library(knitr)
+library(kableExtra)
+
+## Spatial packages
+library(rgdal)
+library(sp)
+library(sf)
+library(rgeos)
+library(raster)
+library(rworldmap)
+#library(elevatr)
+#library(rnaturalearth)
+#library(dggridR)
+
+#save temporary files
+write("TMPDIR = /data/sPlot/users/Francesco/_tmp", file=file.path(Sys.getenv('TMPDIR'), '.Renviron'))
+write("R_USER = /data/sPlot/users/Francesco/_tmp", file=file.path(Sys.getenv('R_USER'), '.Renviron'))
+rasterOptions(tmpdir="/data/sPlot/users/Francesco/_tmp")
+```
+
+## Import header data
+
+```{r}
+load("../_output/header_splot3.0.RData")
+```
+
-- 
GitLab