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
/
Copy path3_driver.yml
66 lines (51 loc) · 2.13 KB
/
3_driver.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
target_default: 3_driver
include:
packages:
- dplyr
- zip
- readr
- sf
sources:
- src/file_functions.R
- src/fetch_filter_functions.R
targets:
3_driver:
depends:
- out_data/distance_matrix_drb.csv
- out_data/reach_attributes_drb.csv
- out_data/reservoir_features_drb.csv
- out_data/gridmet_drb_agg_csv.zip
- out_data/gridmet_drb_agg_nc.zip
- out_data/reanalysis_gefs_drb.zip
- out_data/uncal_sntemp_input_output.zip
# Distance matrix
# from
out_data/distance_matrix_drb.csv:
command: get_distance_matrix(out_file = target_name, in_file = 'in_data/03_driver/distance_matrix.rds')
## gridmet
out_data/gridmet_drb_agg_csv.zip:
command: file.copy(from = 'in_data/03_driver/drb_climate_2022_04_06_segments.csv', to = target_name)
out_data/gridmet_drb_agg.zip:
command: zip_this(out_file = target_name, .object = 'out_data/gridmet_drb_agg.csv')
out_data/gridmet_drb_agg.nc:
command: file.copy(from = 'in_data/03_driver/drb_climate_2022_04_06.nc', to = target_name)
out_data/gridmet_drb_agg_nc.zip:
command: zip_this(out_file = target_name, .object = 'out_data/gridmet_drb_agg.nc')
# Noaa gefs
out_data/reanalysis_gefs_drb.csv:
command: file.copy(from = 'in_data/03_driver/reanalysis_gefs_fy22.csv', to = target_name)
out_data/reanalysis_gefs_drb.zip:
command: zip_obs(out_file = target_name, in_file = 'out_data/reanalysis_gefs_fy22.csv')
# PRMS sntemp
out_data/uncal_sntemp_input_output.nc:
command: file.copy(from = 'in_data/03_driver/uncal_sntemp_input_output.nc', to = target_name)
out_data/uncal_sntemp_input_output.zip:
command: zip_this(out_file = target_name, .object = 'out_data/uncal_sntemp_input_output.nc')
## reach / resevoir items - do we need this ultimately?
out_data/reach_attributes_drb.csv:
command: extract_reach_attributes(
res_file = 'in_data/01_spatial/segments_relative_to_reservoirs.rds',
attr_file = 'in_data/01_spatial/network.rds',
out_file = target_name)
out_data/reservoir_features_drb.csv:
command: file.copy(from = 'in_data/01_spatial/reservoir_features.csv', to = target_name)