-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path2_process.yml
113 lines (98 loc) · 3.49 KB
/
2_process.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
target_default: 2_process
include:
- 1_fetch.yml
packages:
- dplyr
- scipiper
- sp
- maptools
- assertthat
- showtext
- googledrive
- rgdal
- rgeos
- purrr
file_extensions:
- feather
- ind
sources:
- 2_process/src/choose_timesteps.R
- 2_process/src/process_dv_historic_quantiles.R
- 2_process/src/process_dv_stats.R
- 2_process/src/process_add_fixed_gh.R
- 2_process/src/process_dv_stat_styles.R
- 2_process/src/project_shift_points.R
- 2_process/src/project_shift_states.R
targets:
2_process:
depends:
- 2_process/out/timesteps.rds.ind
- 2_process/out/dv_historic_quantiles.rds.ind
- 2_process/out/dv_stats.rds.ind
- 2_process/out/dv_stats_fixed_gh.rds.ind
- 2_process/out/dv_stat_styles.rds.ind
- states_shifted
- site_locations_shifted
# -- config --
proj_str:
command: viz_config[[I('projection')]]
gage_style_config:
command: viz_config[[I('gage_style')]]
display_percentiles:
command: percentiles_all[[I('display')]]
2_process/out/timesteps.rds.ind:
command: choose_timesteps(target_name, dates = vizDates)
2_process/out/timesteps.rds:
command: gd_get('2_process/out/timesteps.rds.ind')
# -- process site data --
2_process/out/dv_historic_data_for_sites.rds.ind:
command: filter_historic_to_current_sites(
ind_file = target_name,
dv_historic_fn = '1_fetch/out/dv_historic.rds',
site_ind = '1_fetch/out/sites.rds.ind')
2_process/out/dv_historic_data_for_sites.rds:
command: gd_get('2_process/out/dv_historic_data_for_sites.rds.ind')
2_process/out/dv_historic_quantiles.rds.ind:
command: process_dv_historic_quantiles(
ind_file = target_name,
dv_historic_ind = '2_process/out/dv_historic_data_for_sites.rds.ind',
percentiles = percentiles)
2_process/out/dv_historic_quantiles.rds:
command: gd_get('2_process/out/dv_historic_quantiles.rds.ind')
2_process/out/dv_stats.rds.ind:
command: process_dv_stats(
ind_file = target_name,
dv_data_ind = '1_fetch/out/dv_data.rds.ind',
site_stats_ind = '2_process/out/dv_historic_quantiles.rds.ind',
dates = vizDates)
2_process/out/dv_stats.rds:
command: gd_get('2_process/out/dv_stats.rds.ind')
2_process/out/dv_stats_fixed_gh.rds.ind:
command: process_add_fixed_gh(
ind_file = target_name,
dv_stats_ind = '2_process/out/dv_stats.rds.ind',
fixed_gh_ind = '1_fetch/out/dv_data_fixed_gh.rds.ind')
2_process/out/dv_stats_fixed_gh.rds:
command: gd_get('2_process/out/dv_stats.rds.ind')
2_process/out/dv_stat_styles.rds.ind:
command: process_dv_stat_styles(
ind_file = target_name,
dv_stats_ind = '2_process/out/dv_stats_fixed_gh.rds.ind',
stage_ind = '1_fetch/out/sites_stage.rds.ind',
gage_style = gage_style_config,
display_percentiles = display_percentiles)
2_process/out/dv_stat_styles.rds:
command: gd_get('2_process/out/dv_stat_styles.rds.ind')
# -- scaling, shifting, rotating config (applies to both states and points) --
shift_cfg:
command: viz_config[[I('shift')]]
# -- process states --
states_projected:
command: project_states('1_fetch/out/pre_state_boundaries_census.zip.ind', projection)
states_shifted:
command: shift_states(states_projected, shift_cfg)
# -- process sites --
site_locations_projected:
command: project_points('1_fetch/out/site_locations.rds.ind', projection)
site_locations_shifted:
command: shift_points(site_locations_projected, states_projected, shift_cfg)