This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path2_observations.yml
74 lines (60 loc) · 2.77 KB
/
2_observations.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
target_default: 2_observations
packages:
- readr
- zip
- zoo
sources:
- src/file_functions.R
- src/fetch_filter_functions.R
targets:
2_observations:
depends:
- out_data/unaggregated_temperature_observations_drb.zip
- out_data/aggregated_temperature_observations_drb.zip
- out_data/flow_observations_drb.zip
- out_data/reservoir_level_obs.csv
- out_data/reservoir_temp_obs.csv
- out_data/reservoir_releases_by_type_drb.csv
# daily flow and temperature data
## make sure we publish the "raw" version (unaggregated) and the "aggregated" version of
## the temperature data. Raw should be matched but not aggregated to one value per reach/day
out_data/unaggregated_temperature_observations_drb.zip:
command: zip_obs(out_file = target_name, in_file = 'in_data/02_observations/obs_temp_drb_raw.rds')
out_data/aggregated_temperature_observations_drb.zip:
command: zip_obs(out_file = target_name, in_file = 'in_data/02_observations/obs_temp_drb.rds')
out_data/flow_observations_drb.zip:
command: zip_obs(out_file = target_name, in_file = 'in_data/02_observations/obs_flow_drb.rds')
# reservoir observations
reservoir_modeling_site_ids:
command: c(I(c(
Pepacton = 'nhdhr_151957878',
Cannonsville = 'nhdhr_120022743',
Neversink = 'nhdhr_149269381')))
out_data/reservoir_temp_obs.csv:
command: fetch_filter_tibble(
out_csv = target_name,
in_dat = 'in_data/02_observations/drb_daily_reservoir_temps.rds',
site_ids = reservoir_modeling_site_ids)
out_data/reservoir_level_nwis.csv:
command: fetch_filter_tibble(
out_csv = target_name,
in_dat = 'in_data/02_observations/drb_reservoirs_waterlevels_munged.rds',
site_ids = reservoir_modeling_site_ids)
out_data/reservoir_level_nycdep.rds:
command: fetch_filter_nycdep(
out_rds = target_name,
in_dat = 'in_data/02_observations/NYC_DEP_reservoir_waterlevels.rds',
site_ids = reservoir_modeling_site_ids)
out_data/reservoir_level_usgs_historical.rds:
command: fetch_filter_historical(
out_rds = target_name,
in_dat = 'in_data/02_observations/interpolated_daily_reservoir_water_budget_components.csv',
xwalk = I(c('Cannonsville' = 'nhdhr_120022743', 'Pepacton' = 'nhdhr_151957878', 'Neversink' = 'nhdhr_149269381')))
out_data/reservoir_level_obs.csv:
command: combine_level_sources(
out_csv = target_name,
nwis_levels = 'out_data/reservoir_level_nwis.csv',
nyc_levels = 'out_data/reservoir_level_nycdep.rds',
hist_levels = 'out_data/reservoir_level_usgs_historical.rds')
out_data/reservoir_releases_by_type_drb.csv:
command: file.copy('in_data/02_observations/reservoir_releases_by_type_drb.csv', to = target_name)