-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathglobal.R
80 lines (58 loc) · 2.05 KB
/
global.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
require(shiny)
require(RColorBrewer)
##################################################
## VARIABLE LISTS ACCORDING TO ESCAPE PROJECT
##################################################
corine.vars <-
c("HDRES", "LDRES", "INDUSTRY", "PORT", "URBGREEN", "NATURAL")
roads.vars.length.maj <-
c("TRAFMAJORLOAD", "HEAVYTRAFMAJORLOAD", "MAJORROADLENGTH")
roads.vars.length.all <-
c("HEAVYTRAFLOAD", "ROADLENGTH", "TRAFLOAD")
roads.vars.nn.maj <-
c(
"HEAVYTRAFMAJOR", "DISTINVMAJOR1", "DISTINVMAJOR2", "INTMAJORINVDIST", "INTMAJORINVDIST2", "TRAFMAJOR"
)
roads.vars.nn.all <-
c(
"TRAFNEAR", "DISTINVNEAR1", "DISTINVNEAR2", "INTINVDIST", "INTINVDIST2", "HEAVYTRAFNEAR"
)
popn.vars <- c("POP", "HHOLD")
##################################################
## IN DATA
##################################################
filename.monitor <- reactiveValues() #filenames
filename.roads <- reactiveValues()
filename.corine <- reactiveValues()
filename.popn <- reactiveValues()
filename.exist <- reactiveValues()
filename.recept <- reactiveValues()
inFile <- reactiveValues()
in.data <- reactiveValues()
dat <- reactiveValues()
epsg <- reactiveValues() #epsg code
gis <- reactiveValues() #T/F if variables created
##################################################
## OUT DATA
##################################################
pred.grid <- NULL # points to make predictions at
r <- NULL # prediction raster or shapefile
##################################################
## MODELLING
##################################################
lur.model <- reactiveValues()
lur.loocv <- NULL
buffers.1 <- c(5000, 1000, 500, 300, 100)
buffers.2 <- c(1000, 500, 300, 100, 50, 25)
##################################################
## LEAFLET
##################################################
ext <- reactiveValues() # Extent of predictor data
ext$min.long <- NULL
ext$min.lat <- NULL
ext$max.long <- NULL
ext$max.lat <- NULL
x <- 0 # Counter to help clear start marker
vertices <- reactiveValues() # Polygon verticies
vertices$xy <- matrix(0, 0, 2)
pal <- rev(brewer.pal(11, "RdYlGn"))