-
Notifications
You must be signed in to change notification settings - Fork 13
/
4_params_munge.yml
183 lines (156 loc) · 8.34 KB
/
4_params_munge.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
target_default: 4_params_munge
packages:
- dplyr
- scipiper
- feather
- readr
- rlang
- raster
- sf
- purrr
- lwgeom
- maps
sources:
- 4_params_munge/src/munge_nlcd.R
- 4_params_munge/src/munge_mglp.R
- 4_params_munge/src/munge_lagos.R
- 4_params_munge/src/munge_bathy.R
- 4_params_munge/src/munge_secchi_model_data.R
- 4_params_munge/src/munge_cd_from_nlcd.R
- 4_params_munge/src/munge_wbic.R
- 4_params_munge/src/munge_contours.R
- lib/src/generic_utils.R
targets:
4_params_munge:
depends:
- 4_params_munge/out/toha_varying_kw.rds.ind
- 4_params_munge/out/mndow_01_bathy.rds.ind
- 4_params_munge/out/mndow_02_bathy.rds.ind
- 4_params_munge/out/mndow_perc_bathy.rds.ind
- 4_params_munge/out/mndow_perc_02_bathy.rds.ind
- 4_params_munge/out/mglp_mi_perc_bathy.rds.ind
- 4_params_munge/out/wbic_bathy.rds.ind
- 4_params_munge/out/ndgf_bathy.rds.ind
- 4_params_munge/out/iadnr_bathy.rds.ind
- 4_params_munge/out/isro_bathy.rds.ind
- 4_params_munge/out/mglp_depths.rds.ind
- 4_params_munge/out/wbic_depths.rds.ind
- 4_params_munge/out/ndgf_depths.rds.ind
- 4_params_munge/out/NY_manual_depths.rds.ind
- 4_params_munge/out/lagos_depths.rds.ind
- 4_params_munge/out/lagos_secchi.rds.ind
- 4_params_munge/out/navico_depths.rds.ind
- 4_params_munge/out/UNDERC_depths.rds.ind
4_params_munge/out/toha_varying_kw.rds.ind:
command: munge_daily_secchi(target_name,
kw_files_zip_ind = '3_params_fetch/in/USGS_Kd_Predictions_byNHDHR.zip.ind')
# nhdhr_151957878: Pepacton Reservoir; nhdhr_120022743: Cannonsville Reservoir; nhdhr_149269381: Neversink Reservoir; nhdhr_61790779: Rondout Reservoir
# nhdhr_120022795: Lake Wallenpaupack; nhdhr_120023042: Beltzville Lake; nhdhr_25920192: Prompton Lake; nhdhr_26148662: Mongaup Falls Reservoir
# nhdhr_120022908: Lake Nockamixon
4_params_munge/out/NY_manual_depths.rds.ind:
command: munge_simple_depth(target_name, nhdhr_151957878 = 55, nhdhr_120022743 = 42.672, nhdhr_149269381 = 53, nhdhr_61790779 = 53.3,
nhdhr_120022795 = 18, nhdhr_120023042 = 38.4048, nhdhr_25920192 = 11.2776, nhdhr_26148662 = 9.7536, nhdhr_120022908 = 27.432)
4_params_munge/out/DRB_reservoirs_bathy.rds.ind:
command: munge_sb_bathy(target_name, in_ind = '3_params_fetch/out/DRB_reservoirs_bathymetry.rds.ind',
drb_xwalk = I(c('Cannonsville' = 'nhdhr_120022743', 'Neversink' = 'nhdhr_149269381', 'Pepacton' = 'nhdhr_151957878', 'Rondout' = 'nhdhr_61790779')))
# nhdhr_120032270: Lake of the Ozarks; nhdhr_120032533: Bull Shoals Lake; nhdhr_120032180: Mark Twain Lake
# nhdhr_106716325: Stockton Lake; nhdhr_168123531: Lake Taneycomo; nhdhr_120032495: Lake Wappapello
# nhdhr_105341319: Norfork Lake; nhdhr_120032884: Table Rock Lake
4_params_munge/out/MO_manual_depths.rds.ind:
command: munge_simple_depth(target_name, nhdhr_120032270 = 40, nhdhr_120032533 = 64, nhdhr_120032180 = 25.9,
nhdhr_106716325 = 32.004, nhdhr_168123531 = 15.5448, nhdhr_120032495 = 14.3256, nhdhr_105341319 = 53.9496,
nhdhr_120032884 = 67.056)
4_params_munge/out/nlcd_2011_buffers.rds.ind:
command: munge_nlcd_buffers(target_name,
lake_buffer_ind = '2_crosswalk_munge/out/buffered_lakes_sf.rds.ind',
nlcd_zip_ind = '3_params_fetch/in/nlcd_2011_landcover_2011_edition_2014_10_10.zip.ind',
nlcd_classes_ind = '3_params_fetch/out/nlcd_classes.rds.ind')
4_params_munge/out/mglp_depths.rds.ind:
command: mglp_depths_from_TDOx(target_name,
TDOx_ind = '3_params_fetch/in/Data_MGLP_TDOx_Models.csv.ind',
mglp_xwalk_ind = '2_crosswalk_munge/out/mglp_nhdhr_xwalk.rds.ind')
4_params_munge/out/navico_depths.rds.ind:
command: munge_navico_depths(target_name,
navico_depth_ind = '1_crosswalk_fetch/out/Navico_lakes_depths_sf.rds.ind',
navico_xwalk_ind = '2_crosswalk_munge/out/navico_nhdhr_xwalk.rds.ind')
4_params_munge/out/UNDERC_depths.rds.ind:
command: munge_UNDERC_depths(target_name,
UNDERC_depth_ind = '1_crosswalk_fetch/out/UNDERC_lakes_depths_sf.rds.ind',
UNDERC_xwalk_ind = '2_crosswalk_munge/out/UNDERC_nhdhr_xwalk.rds.ind')
4_params_munge/out/lagos_secchi.rds.ind:
command: munge_lagos_secchi(target_name,
lagos_secchi_ind = '3_params_fetch/out/LAGOS_NE_secchi.csv.ind',
lagos_xwalk_ind = '2_crosswalk_munge/out/lagosus_nhdhr_xwalk.rds.ind')
4_params_munge/out/lagos_depths.rds.ind:
command: munge_lagos_depths(target_name,
lagos_depths_ind = '3_params_fetch/in/LAGOS_US_depths.csv.ind',
lagos_xwalk_ind = '2_crosswalk_munge/out/lagosus_nhdhr_xwalk.rds.ind')
4_params_munge/out/wbic_depths.rds.ind:
command: munge_wbic_depths(target_name,
wbic_wbodies_ind = '3_params_fetch/in/WI_Waterbodies.tsv.ind',
wbic_xwalk_ind = '2_crosswalk_munge/out/wbic_nhdhr_xwalk.rds.ind')
4_params_munge/out/ndgf_depths.rds.ind:
command: munge_ndgf_depths(target_name,
ndgf_depths_ind = '3_params_fetch/out/ndgf_lake_maxdepth.rds.ind',
ndgf_xwalk_ind = '2_crosswalk_munge/out/ndgf_nhdhr_xwalk.rds.ind')
4_params_munge/out/mglp_mi_perc_bathy.rds.ind:
command: munge_mglp_mi_perc_bathy(
out_ind = target_name,
bathy_csv_ind = '3_params_fetch/in/mi_hypsography_mglpid.csv.ind',
mglp_xwalk_ind = '2_crosswalk_munge/out/mglp_nhdhr_xwalk.rds.ind',
lake_poly_ind = '1_crosswalk_fetch/out/MGLP_lakes_sf.rds.ind')
4_params_munge/out/mndow_perc_bathy.rds.ind:
command: munge_mndow_perc_bathy(
out_ind = target_name,
bathy_zip_ind = '3_params_fetch/in/mndow_percentage_hypsos.zip.ind',
mndow_xwalk_ind = '2_crosswalk_munge/out/mndow_nhdhr_xwalk.rds.ind',
mndow_poly_ind = '1_crosswalk_fetch/out/mndow_lakes_sf.rds.ind')
4_params_munge/out/mndow_perc_02_bathy.rds.ind:
command: munge_mndow_perc_bathy(
out_ind = target_name,
bathy_zip_ind = '3_params_fetch/in/mndow_percentage_02_hypsos.zip.ind',
mndow_xwalk_ind = '2_crosswalk_munge/out/mndow_nhdhr_xwalk.rds.ind',
mndow_poly_ind = '1_crosswalk_fetch/out/mndow_lakes_sf.rds.ind')
4_params_munge/out/iadnr_bathy.rds.ind:
command: munge_iadnr_bathy(
out_ind = target_name,
iadnr_contour_ind = '1_crosswalk_fetch/out/iadnr_contours_sf.rds.ind',
iadnr_surface_ind = '1_crosswalk_fetch/out/iadnr_lakes_sf.rds.ind',
xwalk_ind = '2_crosswalk_munge/out/iadnr_nhdhr_xwalk.rds.ind')
4_params_munge/out/isro_bathy.rds.ind:
command: munge_isro_bathy(
out_ind = target_name,
contour_ind = '1_crosswalk_fetch/out/isro_contours_sf.rds.ind',
surface_ind = '1_crosswalk_fetch/out/isro_lakes_sf.rds.ind',
xwalk_ind = '2_crosswalk_munge/out/isro_nhdhr_xwalk.rds.ind')
4_params_munge/out/indnr_bathy.rds.ind:
command: munge_indnr_bathy(
out_ind = target_name,
layer = I('Water_Bodies_Lakes_Bathymetry'),
contour_zip_ind = '3_params_fetch/out/IN_lakes_bathymetry.zip.ind',
lake_surface_ind = '1_crosswalk_fetch/out/canonical_lakes_sf.rds.ind',
NHDID_WATE_xwalk = I(c('35035411' = 'nhdhr_{20e52ba4-e5d2-4baa-b77e-7d67bce868dc}',
'155639251' = 'nhdhr_{bf931c9f-63a2-425e-82af-0b8d75fd9b25}',
'35034609' = 'nhdhr_04549854-A785-4DB7-9FC1-A3DEEBB23C49')),
LAKE_NAME_xwalk = I(c('DEAM LAKE' = 'nhdhr_96568183', 'HUNTINGBURG LAKE' = 'nhdhr_62689235')))
# Combine MN bathy files and add DOW ID
4_params_munge/out/mndow_01_bathy.rds.ind:
command: munge_mndow_bathy(
out_ind = target_name,
bathy_zip_ind = '3_params_fetch/in/mndow_hypsos_m-20191024.zip.ind',
mndow_xwalk_ind = '2_crosswalk_munge/out/mndow_nhdhr_xwalk.rds.ind')
4_params_munge/out/mndow_02_bathy.rds.ind:
command: munge_mndow_bathy(
out_ind = target_name,
bathy_zip_ind = '3_params_fetch/in/new2_mndow_hypsos_m.zip.ind',
mndow_xwalk_ind = '2_crosswalk_munge/out/mndow_nhdhr_xwalk.rds.ind')
4_params_munge/out/wbic_bathy.rds.ind:
command: munge_wbic_bathy(target_name,
bathy_zip_ind = '3_params_fetch/in/WBIC_hypsos_lakeattributes.zip.ind',
wbic_xwalk_ind = '2_crosswalk_munge/out/wbic_nhdhr_xwalk.rds.ind')
4_params_munge/out/ndgf_bathy.rds.ind:
command: munge_ndgf_bathy(target_name,
ndgf_contour_ind = '3_params_fetch/out/ndgf_lake_contours.rds.ind',
ndgf_xwalk_ind = '2_crosswalk_munge/out/ndgf_nhdhr_xwalk.rds.ind',
ndgf_surface_sf_ind = '1_crosswalk_fetch/out/ndgf_lakesvw.rds.ind',
crs = I(26915))