-
Notifications
You must be signed in to change notification settings - Fork 4
/
2_2_model_drivers.yml
80 lines (63 loc) · 2.48 KB
/
2_2_model_drivers.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
target_default: 2_2_model_drivers
packages:
- dplyr
- tidyr
sources:
- 2_2_model_drivers/src/set_driver_data.R
- 2_2_model_drivers/src/append_new_driver_data.R
targets:
2_2_model_drivers:
depends:
- 2_2_model_drivers_tmax
da_settings:
command: read_yaml('4_model/cfg/da_settings.yml')
n_en:
command: da_settings[I('n_en')]
append_new_tmax:
command: append_new_driver_data(
orig_driver_file = '20191002_Delaware_streamtemp_orig/input/tmax.cbh',
new_driver_file = '2_2_model_drivers/in/Driver_data_2020_03_27/Driver_data/Output/tmax.cbh',
model_run_loc = I('20191002_Delaware_streamtemp'),
driver_name = I('tmax'))
append_new_tmin:
command: append_new_driver_data(
orig_driver_file = '20191002_Delaware_streamtemp_orig/input/tmin.cbh',
new_driver_file = '2_2_model_drivers/in/Driver_data_2020_03_27/Driver_data/Output/tmin.cbh',
model_run_loc = I('20191002_Delaware_streamtemp'),
driver_name = I('tmin'))
append_new_prcp:
command: append_new_driver_data(
orig_driver_file = '20191002_Delaware_streamtemp_orig/input/prcp.cbh',
new_driver_file = '2_2_model_drivers/in/Driver_data_2020_03_27/Driver_data/Output/prcp.cbh',
model_run_loc = I('20191002_Delaware_streamtemp'),
driver_name = I('prcp'))
# have to update the sf_data after updating the dates of the driver files otherwise the model won't run
update_sf_data:
command: update_sf_data(
new_driver_file = '20191002_Delaware_streamtemp/input/tmax.cbh',
model_run_loc = I('20191002_Delaware_streamtemp'))
2_2_model_drivers_tmax:
command: set_driver_data(
orig_driver_file = '20191002_Delaware_streamtemp/input/tmax.cbh',
model_run_loc = I('4_model_forecast/tmp'),
driver_name = I('tmax'),
driver_sd = I(2),
n_en = n_en)
2_2_model_drivers_tmin:
command: set_driver_data(
orig_driver_file = '20191002_Delaware_streamtemp/input/tmin.cbh',
model_run_loc = I('4_model_forecast/tmp'),
driver_name = I('tmin'),
driver_sd = I(2),
n_en = n_en)
2_2_model_drivers_prcp:
command: set_driver_data(
orig_driver_file = '20191002_Delaware_streamtemp/input/prcp.cbh',
model_run_loc = I('4_model_forecast/tmp'),
driver_name = I('prcp'),
driver_sd = I(0.02),
n_en = n_en)
##### Getting forecasted driver data ###########
# need to change this to be dynamic file name (task tables)
# 2_2_model_drivers/out/forecasted_drivers.rds:
# command: