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
/
remake.yml
144 lines (124 loc) · 3.99 KB
/
remake.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
include:
- 1_spatial.yml
- 2_drivers.yml
- 3_config.yml
- 4_predictions.yml
packages:
- yaml
- dplyr
- tidyr
- meddle # at least v0.0.12
- readr
- feather
- rgdal
- stringr
- sf
- sbtools
- dssecrets
- scipiper
- tidyverse
sources:
#- src/spatial_utils.R
- src/sb_utils.R
targets:
all:
depends:
- log/00_parent_sb.csv
- log/01_spatial_sb_data.csv
- log/02_drivers_sb_data.csv
- log/03_config_sb_data.csv
- log/04_predictions_sb_data.csv
out_xml/00_parent_fgdc_metadata.xml:
command: render(filename = target_name,
"in_text/text_SHARED.yml",
"in_text/text_00_parent.yml",
river_metadata)
log/00_parent_sb.csv:
command: sb_replace_files(
filename = target_name,
sb_id = sbid_00_parent,
sources = 'src/sb_utils.R',
'out_xml/00_parent_fgdc_metadata.xml')
## Build xml for spatial
out_xml/01_spatial_fgdc_metadata.xml:
command: render(filename = target_name,
"in_text/text_SHARED.yml",
"in_text/text_01_spatial.yml",
river_metadata)
## Push all spatial data + metadata xml to sb
log/01_spatial_sb_data.csv:
command: sb_replace_files(
filename = target_name,
sb_id = sbid_01_spatial,
sources = 'src/sb_utils.R',
"out_data/study_stream_reaches.zip",
"out_data/study_reservoirs.zip",
'out_xml/01_spatial_fgdc_metadata.xml')
## 2 driver
out_xml/02_drivers_fgdc_metadata.xml:
command: render(filename = target_name,
"in_text/text_SHARED.yml",
"in_text/text_02_drivers.yml",
river_metadata)
## Push all obs data + metadata xml to sb
# note, pointing to the files is not rebust?
log/02_drivers_sb_data.csv:
command: sb_replace_files(
filename = target_name,
sb_id = sbid_02_drivers,
sources = 'src/sb_utils.R',
"out_data/reservoir_io_obs.csv",
"in_data/NLDAS_time[0.377900]_x[397]_y[136].csv",
"in_data/NLDAS_time[0.377900]_x[401]_y[136].csv",
"out_data/reservoir_io_sntemp.csv",
'out_data/noaagefs_meteo_driver_files.zip',
'out_xml/02_drivers_fgdc_metadata.xml')
## 3 config
out_xml/03_config_fgdc_metadata.xml:
command: render(filename = target_name,
"in_text/text_SHARED.yml",
"in_text/text_03_config.yml",
reservoir_metadata)
## Push all obs data + metadata xml to sb
log/03_config_sb_data.csv:
command: sb_replace_files(
filename = target_name,
sb_id = sbid_03_config,
sources = 'src/sb_utils.R',
"out_data/reservoir_nml_values.json",
"out_data/reservoir_nml_files.zip",
'out_xml/03_config_fgdc_metadata.xml')
## 4 predictions
out_xml/04_predictions_fgdc_metadata.xml:
command: render(filename = target_name,
"in_text/text_SHARED.yml",
"in_text/text_04_predictions.yml",
reservoir_metadata)
## Push all obs data + metadata xml to sb
log/04_predictions_sb_data.csv:
command: sb_replace_files(
filename = target_name,
sb_id = sbid_04_predictions,
sources = 'src/sb_utils.R',
'out_data/reservoir_downstream_preds.csv',
"out_data/dwallin_stream_preds_csv.zip",
'out_data/forecast_pgdl_da_outputs_rgcn_DA.zip',
'out_data/forecast_pgdl_da_outputs_lstm_DA.zip',
'out_data/forecast_pgdl_da_outputs_rgcn_no_DA.zip',
'out_data/forecast_pgdl_da_outputs_lstm_no_DA.zip',
'out_data/forecast_pgdl_da_outputs_rgcn_persistence.zip',
'out_data/forecast_pgdl_da_outputs_lstm_persistence.zip',
'out_data/paired_predicted_observed_temperatures.csv',
'out_data/spatial_cross_validation_train_table.csv',
'out_xml/04_predictions_fgdc_metadata.xml')
# ------ SB IDs --------
sbid_00_parent:
command: c(I('6238fcead34e915b67cc4856'))
sbid_01_spatial:
command: c(I('624f211ed34e21f82769a7a4'))
sbid_02_drivers:
command: c(I('624f21b9d34e21f82769a7ab'))
sbid_03_config:
command: c(I('624f21ddd34e21f82769a7af'))
sbid_04_predictions:
command: c(I('624f21fad34e21f82769a7b1'))