-
Notifications
You must be signed in to change notification settings - Fork 13
/
7a_nwis_munge.yml
54 lines (45 loc) · 2.44 KB
/
7a_nwis_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
target_default: 7a_nwis_munge
packages:
- scipiper
- dplyr
- readxl
sources:
- 7a_nwis_munge/src/munge_reservoir_data.R
- 7a_nwis_munge/src/munge_nyc_dep_reservoir_data.R
targets:
7a_nwis_munge:
depends:
- 7a_nwis_munge/out/drb_reservoirs_temp_munged.rds.ind
- 7a_nwis_munge/out/drb_reservoirs_waterlevels_munged.rds.ind
- 7a_nwis_munge/out/NYC_DEP_reservoir_temperature_data.rds.ind
# -- munge NWIS temperature records for reservoirs -- #
# Cannonsville: '01423910' or 'nhdhr_120022743'; Pepacton: '01414750' = 'nhdhr_151957878'
7a_nwis_munge/out/drb_reservoirs_temp_munged.rds.ind:
command: munge_nwis_temperature(
out_ind = target_name,
in_ind = '6_nwis_fetch/out/drb_reservoirs_temps.rds.ind',
xwalk = I(c('01423910' = 'nhdhr_120022743', '01414750' = 'nhdhr_151957878')))
# looks like surface elevation records come from multiple sites
# the measurements from the site without temperature are dvs but appear
# to take a while to be approved
# the measurments from the temp site are not as long term, but can gap fill in near term
7a_nwis_munge/out/drb_reservoirs_waterlevels_munged.rds.ind:
command: munge_nwis_waterlevel(
out_ind = target_name,
temp_ind = '6_nwis_fetch/out/drb_reservoirs_temps.rds.ind',
levels_ind = '6_nwis_fetch/out/drb_reservoirs_waterlevel.rds.ind',
xwalk = I(c('01423910' = 'nhdhr_120022743', '01414750' = 'nhdhr_151957878', '01424997' = 'nhdhr_120022743', '01416900' = 'nhdhr_151957878')))
# -- Munge NYC Department of Environmental Protection (DEP) temperature records for reservoirs -- #
# Cannonsville: '01423910' or 'nhdhr_120022743'; Pepacton: '01414750' = 'nhdhr_151957878'
7a_nwis_munge/out/NYC_DEP_reservoir_temperature_data.rds.ind:
command: munge_nyc_dep_temperature(
out_ind = target_name,
in_ind = '7a_nwis_munge/in/NYC_DEP_reservoir_data.xlsx.ind',
xwalk = I(c('Cannonsville' = 'nhdhr_120022743', 'Pepacton' = 'nhdhr_151957878')))
# Munge NYC Department of Environmental Protection (DEP) temperature data to retrieve surface elevation records.
# Cannonsville: '01423910' or 'nhdhr_120022743'; Pepacton: '01414750' = 'nhdhr_151957878'
7a_nwis_munge/out/NYC_DEP_reservoir_waterlevels.rds.ind:
command: munge_nyc_dep_waterlevel(
out_ind = target_name,
temp_ind = '7a_nwis_munge/in/NYC_DEP_reservoir_data.xlsx.ind',
xwalk = I(c('Cannonsville' = 'nhdhr_120022743', 'Pepacton' = 'nhdhr_151957878')))