This repository was archived by the owner on Jun 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis_assim.channel_rt.puertorico.json
More file actions
94 lines (94 loc) · 3.86 KB
/
Copy pathanalysis_assim.channel_rt.puertorico.json
File metadata and controls
94 lines (94 loc) · 3.86 KB
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
87
88
89
90
91
92
93
94
{
"operations": [
{
"operation": "drop",
"exclude": true,
"fields": ["feature_id", "time", "reference_time", "streamflow", "crs"]
},
{
"operation": "adjust_dimensions",
"mapping": {
"streamflow": ["feature_id", "time"]
}
},
{
"operation": "branch",
"branches": {
"WMS": [
{
"operation": "unit_conversion",
"conversions": [
{
"variable_name": "streamflow",
"target_unit": "ft3 s-1"
}
]
},
{
"operation": "save",
"filename_pattern": "nwm.t{cycle}z.{Configuration}.{ModelOutputType}.tm{tminus}.{Region}.nc",
"directory": "{output_path}/",
"include_conditions": {
"tminus": "00"
}
}
],
"RFC": [
{
"operation": "on_each",
"comment": "Add upstreamflow to each input file by calling 'post_processing.transform.calculate_upstream_flow.calculate_upstream_flow' on each",
"on_each": [
{
"operation": "function",
"function_name": "post_processing.transform.calculate_upstream_flow.calculate_upstream_flow_binned",
"kwargs": {
"routelink_path": "{routelink_path}/RouteLink_PRVI.nc",
"routelink_from_variable": "link",
"output_path": "{work_directory}/upstream.{input_name}"
},
"argument_mapping": {
"input_path": "data"
}
}
]
},
{
"operation": "rename",
"mapping": {
"feature_id": "station_id"
}
},
{
"operation": "rename",
"rename_variable": false,
"mapping": {
"feature_id": "station"
}
},
{
"operation": "extract",
"dimension": "station_id",
"mask_coordinate": "station_id",
"masks": [
"{mask_path}/prvi.serfc.nc"
],
"identifier_pattern": "^(?P<region>\\w+(\\.(?P<rfc>[MmAaLlCcNnPpWwOoSsHh][BbPpNnMmAaCcEeWwHhRrGg]([Rr][Ff][Cc]|[Vv][Ii])))?)",
"output_pattern": "nwm.t{cycle}z.{Configuration}.{ModelOutputType}.{frame}.puertorico.serfc.nc",
"each": [
{
"operation": "save",
"filename_pattern": "nwm.t{cycle}z.{Configuration}.{ModelOutputType}.{frame}.puertorico.serfc.nc",
"identifier_pattern": "(?P<rfc>[A-Za-z]{2}[Rr][Ff][Cc])",
"directory": "{output_path}/"
}
]
}
]
}
}
],
"configuration": "analysis_assim",
"output_type": "channel_rt",
"region": "puertorico",
"member": null
}