-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
88 lines (87 loc) · 2.64 KB
/
config.py
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
# The "data collection" may contain multiple named parts (each will be put in its own zarr archive)
# Each part may contain multiple "level types" (e.g. heightAboveGround, etc)
# and a name-mapping may also be defined
DATA_COLLECTION = dict(
height_levels=[
dict(
level_type="heightAboveGround",
variables={
# v: [30, 50, 75, 100, 150, 200, 250, 300, 500] # levels in DANRA
v: [50, 100, 150, 250] # only these in DINI
for v in "t r u v".split()
},
)
],
pressure_levels=[
dict(
level_type="isobaricInhPa",
variables={
v: [
1000,
950,
925,
900,
850,
800,
700,
600,
500,
400,
300,
250,
200,
100,
]
# for v in "z t u v tw r ciwc cwat".split() # variables in DANRA
for v in "z t u v r".split()
},
)
],
single_levels=[
dict(
level_type="heightAboveGround",
variables={
v: None
for v in [
"hcc",
"lcc",
"mcc",
# "tcc", # not in DINI
# "icei", # not in DINI
# "lwavr", # not in DINI
"mld",
"pres",
# "prtp", # not in DINI
# "psct", # not in DINI
# "pscw", # not in DINI
# "pstb", # not in DINI
# "pstbc", # not in DINI
# "sf", # not in DINI
# "swavr", # not in DINI
"vis",
# "xhail", # not in DINI
]
},
),
dict(
level_type="heightAboveGround",
variables={
"t": [0, 2],
"r": [2],
"u": [10],
"v": [10],
},
level_name_mapping="{var_name}{level:d}m",
),
dict(
level_type="entireAtmosphere",
variables={v: None for v in ["cape"]}, # pwat, cb, ct, grpl not in DINI
level_name_mapping="{var_name}_column",
),
dict(
level_type="heightAboveSea",
variables=dict(pres=None),
level_name_mapping="{var_name}_seasurface",
),
],
)