-
Notifications
You must be signed in to change notification settings - Fork 1
/
_targets.R
44 lines (37 loc) · 888 Bytes
/
_targets.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
library(targets)
library(tarchetypes)
# Stop annoying messaging when it downloads each file
options(googledrive_quiet = TRUE,
clustermq.scheduler = "multiprocess")
tar_option_set(packages = c(
'dataRetrieval',
'googledrive',
'ncdf4',
'nhdplusTools',
'prism',
'raster',
'readxl',
'sf',
'terra',
'tidyverse',
'yaml'
), format='qs', deployment='main')
source('1_download.R')
source('2_process.R')
# source('3_model.R') # Leaving 3 as a placeholder for future work
source('4_visualize.R')
# Define what each value in the rasters mean
bloom_plume_class_xwalk <- tibble::tibble(
val = 0:4,
nm = c(
"out of area/masked",
"openWater",
"lightNearShoreSediment",
"offShoreSediment",
"darkNearShoreSediment"
),
color = c("white", "#9fc5e8", "#edbd95", "#db7b2b", "#41240c")
)
# All outputs
c(p1_download, p2_process,
p4_visualize)