-
Notifications
You must be signed in to change notification settings - Fork 13
/
7a_temp_coop_munge.yml
72 lines (60 loc) · 2.86 KB
/
7a_temp_coop_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
target_default: 7a_temp_coop_munge
packages:
- scipiper
- tools
- dplyr
- readxl
- yaml
- feather
- testit
- odbc
sources:
- 7a_temp_coop_munge/src/parsing_task_fxns.R
- 7a_temp_coop_munge/src/data_merge_fxns.R
- 7a_temp_coop_munge/src/crosswalk_fxns.R
- lib/src/require_local.R
- lib/src/generic_utils.R
targets:
7a_temp_coop_munge:
depends:
- 7a_temp_coop_munge/out/all_coop_dat_linked.feather.ind
# here, trigger_file is used to keep this parser_file list _always stale_, so it always gets rebuilt.
7a_temp_coop_munge/tmp/parser_files.yml:
command: list_coop_files(target_name,
dirpath = I('7a_temp_coop_munge/src/data_parsers'),
trigger_file = '1_crosswalk_fetch/out/always_stale_time.txt')
coop_parsers:
command: find_parser(coop_wants, '7a_temp_coop_munge/tmp/parser_files.yml',
trigger_file = '1_crosswalk_fetch/out/always_stale_time.txt')
coop_munge_taskplan:
command: create_coop_munge_taskplan(wants = coop_wants, parsers = coop_parsers)
# -- create makefile with targets to parse each file pulled from gd -- #
7a_temp_coop_munge_tasks.yml:
command: create_coop_munge_makefile(target_name, coop_munge_taskplan,
parser_files_yml = '7a_temp_coop_munge/tmp/parser_files.yml',
I('7a_temp_coop_munge/log/7a_temp_coop_munge_tasks.ind'))
7a_temp_coop_munge/log/7a_temp_coop_munge_tasks.ind:
command: loop_tasks(task_plan = coop_munge_taskplan,
task_makefile = '7a_temp_coop_munge_tasks.yml',
num_tries = 1)
depends:
- '7a_temp_coop_munge/tmp/parser_files.yml'
- '6_temp_coop_fetch/log/6_temp_coop_fetch_tasks.ind'
# -- bind together all data using final indicator file of 7a_temp_coop_munge_tasks.yml -- #
# these are crosswalks to _ temperature data_, not all xwalks link to temperatures
7a_temp_coop_munge/out/all_coop_dat_linked.feather.ind:
command: crosswalk_coop_dat(
outind = target_name,
inind = '7a_temp_coop_munge/log/7a_temp_coop_munge_tasks.ind',
id_crosswalk = '2_crosswalk_munge/out/micorps_nhdhr_xwalk.rds.ind',
wbic_crosswalk = '2_crosswalk_munge/out/wbic_nhdhr_xwalk.rds.ind',
dow_crosswalk = '2_crosswalk_munge/out/mndow_nhdhr_xwalk.rds.ind',
iowa_crosswalk = '2_crosswalk_munge/out/Iowa_nhdhr_xwalk.rds.ind',
missouri_crosswalk = '2_crosswalk_munge/out/univ_mo_nhdhr_xwalk.rds.ind',
mo_usace_crosswalk = '2_crosswalk_munge/out/mo_usace_nhdhr_xwalk.rds.ind',
navico_crosswalk = '2_crosswalk_munge/out/navico_nhdhr_xwalk.rds.ind',
norfork_crosswalk = '2_crosswalk_munge/out/norfork_nhdhr_xwalk.rds.ind',
underc_crosswalk = '2_crosswalk_munge/out/UNDERC_nhdhr_xwalk.rds.ind',
sd_crosswalk = '2_crosswalk_munge/out/SD_nhdhr_xwalk.rds.ind',
in_clp_crosswalk = '2_crosswalk_munge/out/IN_CLP_nhdhr_xwalk.rds.ind',
in_dnr_crosswalk = '2_crosswalk_munge/out/IN_DNR_nhdhr_xwalk.rds.ind')