-
Notifications
You must be signed in to change notification settings - Fork 1
/
4_pb_model.yml
64 lines (53 loc) · 1.67 KB
/
4_pb_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
target_default: 4_pb_model
packages:
- sf
- yaml
- tidyverse
- scipiper
- ncdf4
sources:
- utils/src/EnKF_functions.R
- 4_pb_model/src/nc_utils.R
- 4_pb_model/src/run_sntemp.R
- 4_pb_model/src/update_sntemp.R
- 2_3_model_parameters/src/add_default_sntemp_params.R
- 4_pb_model/src/run_prms_sntemp_ens.R
- 4_pb_model/src/get_sntemp_values.R
- 4_pb_model/src/set_sntemp_output.R
- 4_pb_model/src/gather_sntemp_output.R
targets:
4_pb_model:
depends:
# create ensemble of PRMS-SNTemp runs with varying drivers and parameters
n_en:
command: model_settings[[I('n_en')]]
pb_start:
command: model_settings[[I('start')]]
pb_stop:
command: model_settings[[I('stop')]]
pb_dates:
command: get_model_dates(pb_start, pb_stop)
project_id:
command: model_settings[[I('project_id')]]
pb_model_states:
command: model_settings[[I('states')]]
# create nc model output for storing PRMS-SNTemp variables
4_pb_model/out/pb_pretrain_model_output.nc.ind:
command: nc_create_pb_pretrain_out(
model_locations_ind = '1_model_fabric/out/model_locations.rds.ind',
n_en = n_en,
dates = pb_dates,
project_id = project_id,
vars = pb_model_states,
nc_name_out_ind = target_name)
# run PRMS-SNTemp n_en times and store output in nc file
run_prms_sntemp_ens:
command: run_prms_sntemp_ens(
nc_output_file_ind = '4_pb_model/out/pb_pretrain_model_output.nc.ind',
nc_param_file_ind = '2_3_model_parameters/out/pb_model_params.nc.ind',
start = pb_start,
stop = pb_stop,
n_en = n_en,
vars = pb_model_states,
model_run_loc = pb_model_run_loc,
orig_model_loc = orig_model_loc)