forked from jzwart/delaware-water-temp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4_model_calibrate.yml
63 lines (47 loc) · 1.74 KB
/
4_model_calibrate.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
target_default: 4_model_calibrate
packages:
- yaml
- dplyr
- tidyr
- scipiper
- igraph
sources:
- 4_model/src/EnKF_functions.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
- 4_model_calibrate/src/calibrate_sntemp.R
- 4_model_calibrate/src/get_subbasins.R
- 4_model/src/get_upstream_downstream_segs.R
- 4_model_calibrate/src/get_calibration_order.R
targets:
4_model_calibrate:
depends:
- 4_model_calibrate/out/drb_subbasins.rds.ind
- 4_model_calibrate/out/model_out_cal.rds.ind
#############################################
# calibrating SNTemp for DRB
#############################################
cal_start:
command: calibration_settings[I('start')]
cal_stop:
command: calibration_settings[I('stop')]
4_model_calibrate/out/drb_subbasins.rds.ind:
command: get_subbasins(
ind_file = target_name,
subbasin_outlet_file = '4_model_calibrate/cfg/subbasin_outlets.yml')
4_model_calibrate/out/drb_subbasins.rds:
command: gd_get(ind_file = '4_model_calibrate/out/drb_subbasins.rds.ind')
4_model_calibrate/out/model_out_cal.rds.ind:
command: calibrate_sntemp(
ind_file = target_name,
start = cal_start,
stop = cal_stop,
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/calibration_params_init.rds',
model_run_loc = I('4_model_calibrate/tmp'),
orig_model_loc = I('20191002_Delaware_streamtemp'),
subbasin_file = '4_model_calibrate/out/drb_subbasins.rds',
subbasin_outlet_file = '4_model_calibrate/cfg/subbasin_outlets.yml')