-
Notifications
You must be signed in to change notification settings - Fork 13
/
6_nwis_fetch.yml
31 lines (24 loc) · 1.07 KB
/
6_nwis_fetch.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
target_default: 6_nwis_fetch
packages:
- dataRetrieval
- dplyr
sources:
- 6_nwis_fetch/src/fetch_reservoirs.R
targets:
6_nwis_fetch:
depends:
- 6_nwis_fetch/out/drb_reservoirs_waterlevel.rds.ind
- 6_nwis_fetch/out/drb_reservoirs_temps.rds.ind
# for now just Cannonsville and Pepacton
reservoir_temp_sites:
command: c(I(c('01423910', '01414750')))
# there are some older USGS sites with longer records of water levels
# these are for Cannonsville and Pepacton
reservoir_waterlevel_sites:
command: c(I(c('01424997', '01416900')))
# this returns 2013-present water levels
6_nwis_fetch/out/drb_reservoirs_waterlevel.rds.ind:
command: retrieve_reservoir_data(out_ind = target_name, site_id = reservoir_waterlevel_sites, parameter = I('62614'), service = I('dv'), stat = I('00011'))
# this returns paired water temp and water level observations
6_nwis_fetch/out/drb_reservoirs_temps.rds.ind:
command: retrieve_reservoir_data(out_ind = target_name, site_id = reservoir_temp_sites, parameter = I(c('00010', '62615')), service = I('uv'))