-
Notifications
You must be signed in to change notification settings - Fork 6
/
1_fetch.yml
45 lines (33 loc) · 1.27 KB
/
1_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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
target_default: 1_fetch
packages:
- scipiper
- dplyr
#- sbtools
sources:
- 1_fetch/src/sb_utils.R
- 1_fetch/src/fetch_utils.R
targets:
1_fetch:
depends:
- nml_list
- 1_fetch/out/pb0_config.json
- 1_fetch/out/03_temperature_observations.csv
- model_ids
# relies on the .csv contents of '../lake-temperature-model-prep/7_drivers_munge/out'
1_fetch/out/pb0_config.json:
command: fetch_sb_file(target_name, sb_id = I('5db81967e4b0b0c58b5a4c3f'), dummy = I("2020-01-25"))
1_fetch/out/03_temperature_observations.csv:
command: fetch_sb_file(target_name, sb_id = I('5db81985e4b0b0c58b5a4c41'),
sb_file = I('03_temperature_observations.zip'), unzip = TRUE, dummy = I("2020-01-25"))
# this is pretty redundant with pb0_config.json, but is _only_ the params that change from lake to lake
# we need if for the time being right now
nml_list:
command: filter_nml_list('../lake-temperature-model-prep/7_config_merge/out/nml_list.rds')
# note that including Kw drops modeled lakes from 13,384 to 6,922
model_ids:
command: names(nml_list)
kw_data:
command: readRDS("../lake-temperature-model-prep/4_params_munge/out/toha_varying_kw.rds")
toha_model_ids:
command: filter_toha_models(nml_list,
kw_data = kw_data)