-
Notifications
You must be signed in to change notification settings - Fork 4
/
4_model.yml
90 lines (77 loc) · 2.52 KB
/
4_model.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
target_default: 4_model
packages:
- yaml
- dplyr
- tidyr
- scipiper
sources:
- 4_model/src/EnKF_functions.R
- 4_model/src/process_models/random_walk.R
- 4_model/src/get_sntemp_values.R
- 4_model/src/run_sntemp.R
- 4_model/src/update_sntemp.R
- 4_model/src/set_sntemp_output.R
targets:
4_model:
depends:
- 4_model/out/model_out.rds.ind
##########################################
# example of EnKF model
##########################################
start:
command: da_settings[I('start')]
stop:
command: da_settings[I('stop')]
# model_locations:
# command:
model_spinup:
command: model_spinup(
n_en = n_en,
start = start,
stop = stop,
time_step = I('days'),
model_run_loc = I('4_model/tmp'),
spinup_days = I(730))
4_model/out/model_out_gwsum_sssum_subbasin_4182_inf_factor.rds.ind:
command: EnKF(
ind_file = target_name,
n_en = n_en,
start = start,
stop = stop,
time_step = I('days'),
subbasin_file = '4_model_calibrate/out/drb_subbasins.rds',
subbasin_outlet_file = '4_model_calibrate/cfg/subbasin_outlets.yml',
subbasin_outlet_id = I('4182'),
model_fabric_file = '20191002_Delaware_streamtemp/GIS/Segments_subset.shp',
obs_file = '3_observations/in/obs_temp_full.rds',
init_param_file = '2_3_model_parameters/out/init_params.rds',
model_run_loc = I('4_model/tmp'),
orig_model_loc = I('20200207_Delaware_streamtemp_state_adj'),
state_names = state_names,
n_params_obs = I(0),
obs_cv = I(0.05),
param_cv = I(0.2),
init_cond_cv = I(0.1),
covar_inf_factor = TRUE)
4_model/out/model_out_no_assim_subbasin_4182_inf_factor.rds.ind:
command: EnKF(
ind_file = target_name,
n_en = n_en,
start = start,
stop = stop,
time_step = I('days'),
subbasin_file = '4_model_calibrate/out/drb_subbasins.rds',
subbasin_outlet_file = '4_model_calibrate/cfg/subbasin_outlets.yml',
subbasin_outlet_id = I('4182'),
model_fabric_file = '20191002_Delaware_streamtemp/GIS/Segments_subset.shp',
obs_file = '3_observations/in/obs_temp_full.rds',
init_param_file = '2_3_model_parameters/out/init_params.rds',
model_run_loc = I('4_model/tmp'),
orig_model_loc = I('20200207_Delaware_streamtemp_state_adj'),
state_names = state_names,
n_params_obs = I(0),
obs_cv = I(0.05),
param_cv = I(0.2),
init_cond_cv = I(0.1),
assimilate_obs = FALSE,
covar_inf_factor = TRUE)