Skip to content

Commit 4912f5a

Browse files
Create ldf_variable_defaults.yaml
1 parent 70b2948 commit 4912f5a

File tree

1 file changed

+342
-0
lines changed

1 file changed

+342
-0
lines changed

ldf_variable_defaults.yaml

Lines changed: 342 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,342 @@
1+
2+
#This file lists out variable-specific defaults
3+
#for plotting and observations. These defaults
4+
#are:
5+
#
6+
# PLOTTING:
7+
#
8+
# colormap -> The colormap that will be used for filled contour plots.
9+
# contour_levels -> A list of the specific contour values that will be used for contour plots.
10+
# Cannot be used with "contour_levels_range".
11+
# contour_levels_range -> The contour range that will be used for plots.
12+
# Values are min, max, and stride. Cannot be used with "contour_levels".
13+
# diff_colormap -> The colormap that will be used for filled contour different plots
14+
# diff_contour_levels -> A list of the specific contour values thta will be used for difference plots.
15+
# Cannot be used with "diff_contour_range".
16+
# diff_contour_range -> The contour range that will be used for difference plots.
17+
# Values are min, max, and stride. Cannot be used with "diff_contour_levels".
18+
# scale_factor -> Amount to scale the variable (relative to its "raw" model values).
19+
# add_offset -> Amount of offset to add to the variable (relatie to its "raw" model values).
20+
# new_unit -> Variable units (if not using the "raw" model units).
21+
# mpl -> Dictionary that contains keyword arguments explicitly for matplotlib
22+
#
23+
# mask -> Setting that specifies whether the variable should be masked.
24+
# Currently only accepts "landmask", which means the variable will be masked
25+
# everywhere that isn't land.
26+
#
27+
#
28+
# OBSERVATIONS:
29+
#
30+
# obs_file -> Path to observations file. If only the file name is given, then the file is assumed to
31+
# exist in the path specified by "obs_data_loc" in the config file.
32+
# obs_name -> Name of the observational dataset (mostly used for plotting and generated file naming).
33+
# If this isn't present then the obs_file name is used.
34+
# obs_var_name -> Variable in the observations file to compare against. If this isn't present then the
35+
# variable name is assumed to be the same as the model variable name.
36+
#
37+
#
38+
#
39+
# WEBSITE:
40+
#
41+
# category -> The website category the variable will be placed under.
42+
#
43+
#
44+
# DERIVING:
45+
#
46+
# derivable_from -> If not present in the available output files, the variable can be derived from
47+
# other variables that are present (e.g. PRECT can be derived from PRECC and PRECL),
48+
# which are specified in this list
49+
# NOTE: this is not very flexible at the moment! It can only handle variables that
50+
# are sums of the constituents. Futher flexibility is being explored.
51+
#
52+
#
53+
# Final Note: Please do not modify this file unless you plan to push your changes back to the ADF repo.
54+
# If you would like to modify this file for your personal ADF runs then it is recommended
55+
# to make a copy of this file, make modifications in that copy, and then point the ADF to
56+
# it using the "defaults_file" config variable.
57+
#
58+
#+++++++++++
59+
60+
#+++++++++++++
61+
# Available Land Default Plot Types
62+
#+++++++++++++
63+
default_ptypes: ["Tables","LatLon","TimeSeries",
64+
"Arctic","RegionalClimo","RegionalTimeSeries","Special"]
65+
66+
#+++++++++++++
67+
# Constants
68+
#+++++++++++++
69+
70+
#seconds per day :
71+
spd: 86400
72+
diff_levs: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
73+
74+
#+++++++++++++
75+
# Category: Atmosphere
76+
#+++++++++++++
77+
78+
TSA: # 2m air temperature
79+
category: "Atmosphere"
80+
colormap: "coolwarm"
81+
contour_levels_range: [250, 310, 10]
82+
83+
PREC: # RAIN + SNOW
84+
category: "Atmosphere"
85+
colormap: "managua"
86+
derivable_from: ["RAIN","SNOW"]
87+
scale_factor: 86400
88+
add_offset: 0
89+
new_unit: "mm d$^{-1}$"
90+
mpl:
91+
colorbar:
92+
label : "mm d$^{-1}$"
93+
diff_colormap: "BrBG"
94+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
95+
pct_diff_colormap: "PuOr_r"
96+
97+
FLDS: # atmospheric longwave radiation
98+
category: "Atmosphere"
99+
colormap: "Oranges"
100+
contour_levels_range: [100, 500, 25]
101+
diff_colormap: "BrBG"
102+
diff_contour_range: [-20, 20, 2]
103+
scale_factor: 1
104+
add_offset: 0
105+
new_unit: "Wm$^{-2}$"
106+
mpl:
107+
colorbar:
108+
label : "Wm$^{-2}$"
109+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
110+
pct_diff_colormap: "PuOr_r"
111+
112+
FSDS: # atmospheric incident solar radiation
113+
category: "Atmosphere"
114+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
115+
pct_diff_colormap: "PuOr_r"
116+
117+
WIND: # atmospheric air temperature
118+
category: "Atmosphere"
119+
120+
QBOT: # atmospheric specific humidity
121+
category: "Atmosphere"
122+
123+
TBOT:
124+
category: "Atmosphere"
125+
colormap: "coolwarm"
126+
contour_levels_range: [250, 310, 10]
127+
128+
TREFMNAV: # daily minimum of average 2m temperature
129+
category: "Atmosphere"
130+
colormap: "coolwarm"
131+
contour_levels_range: [250, 310, 10]
132+
133+
134+
TREFMXAV: # daily maximum of average 2m temperature
135+
category: "Atmosphere"
136+
colormap: "cool warm"
137+
contour_levels_range: [250, 310, 10]
138+
139+
140+
#+++++++++++
141+
# Category: Surface fluxes
142+
#+++++++++++
143+
144+
ASA: # all-sky albedo:FSR/FSDS
145+
category: "Surface fluxes"
146+
colormap: "RdBu_r"
147+
diff_colormap: "BrBG"
148+
derivable_from: ["FSR", "FSDS"]
149+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
150+
pct_diff_colormap: "PuOr_r"
151+
152+
FSA: # absorbed solar radiation
153+
category: "Surface fluxes"
154+
155+
FSH: # sensible heat
156+
category: "Surface fluxes"
157+
158+
159+
ET: # latent heat: FCTR+FCEV+FGEV
160+
category: "Surface fluxes"
161+
derivable_from: ["FCTR","FCEV","FGEV"]
162+
colormap: "Blues"
163+
contour_levels_range: [0, 220, 10]
164+
diff_colormap: "BrBG"
165+
diff_contour_range: [-45, 45, 5]
166+
scale_factor: 1
167+
add_offset: 0
168+
new_unit: "Wm$^{-2}$"
169+
mpl:
170+
colorbar:
171+
label : "Wm$^{-2}$"
172+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
173+
pct_diff_colormap: "PuOr_r"
174+
175+
DSTFLXT: # total surface dust emission
176+
category: "Surface fluxes"
177+
colormap: "Browns"
178+
diff_colormap: "BrBG_r"
179+
scale_factor: 86400
180+
add_offset: 0
181+
new_unit: "kg m$^{-2}$ d$^{-1}"
182+
mpl:
183+
colorbar:
184+
label : "kg m$^{-2}$ d$^{-1}"
185+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
186+
pct_diff_colormap: "PuOr_r"
187+
scale_factor_table: 0.000365 #days to years, kg/m2 to Pg globally
188+
avg_method: 'sum'
189+
table_unit: "Pg y$^{-1}"
190+
191+
MEG_isoprene: # total surface dust emission
192+
category: "Surface fluxes"
193+
colormap: "Browns"
194+
diff_colormap: "BrBG_r"
195+
scale_factor: 86400
196+
add_offset: 0
197+
new_unit: "kg m$^{-2}$ d$^{-1}"
198+
mpl:
199+
colorbar:
200+
label : "kg m$^{-2}$ d$^{-1}"
201+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
202+
pct_diff_colormap: "PuOr_r"
203+
scale_factor_table: 0.365 #days to years, kg/m2 to Tg globally
204+
avg_method: 'sum'
205+
table_unit: "Tg y$^{-1}"
206+
207+
208+
#+++++++++++
209+
# Category: Hydrology
210+
#+++++++++++
211+
FSNO: # fraction of ground covered by snow
212+
category: "Hydrology"
213+
214+
215+
H2OSNO: # SNOWICE + SNOWLIQ
216+
category: "Hydrology"
217+
218+
219+
SNOWDP: # snow height
220+
category: "Hydrology"
221+
222+
223+
TOTRUNOFF: # total liquid runoff
224+
category: "Hydrology"
225+
derivable_from: ["QOVER","QDRAI","QRGWL"] #TODO, check accuracy
226+
colormap: "Blues"
227+
scale_factor: 86400
228+
add_offset: 0
229+
new_unit: "mm d$^{-1}$"
230+
mpl:
231+
colorbar:
232+
label : "mm d$^{-1}$"
233+
234+
#+++++++++++
235+
# Category: Vegetation
236+
#+++++++++++
237+
BTRANMN: # Transpiration beta factor
238+
category: "Vegetation" # Or hydrology?
239+
240+
ELAI: # exposed one-sided leaf area index
241+
category: "Vegetation"
242+
colormap: "gist_earth_r"
243+
contour_levels_range: [0., 7., 1.0]
244+
diff_colormap: "PuOr_r"
245+
diff_contour_range: [-3.,3.,0.5]
246+
247+
248+
HTOP: # canopy top height
249+
category: "Vegetation"
250+
251+
252+
TSAI: # total one-sided stem area index
253+
category: "Vegetation"
254+
255+
256+
#+++++++++++
257+
# Category: Carbon
258+
#+++++++++++
259+
GPP: # Gross Primary Production
260+
category: "Carbon"
261+
colormap: "gist_earth_r"
262+
contour_levels_range: [0., 8., 0.5]
263+
diff_colormap: "BrBG"
264+
diff_contour_range: [-4.,4.,0.5]
265+
scale_factor: 86400
266+
add_offset: 0
267+
new_unit: "gC m$^{-2} d$^{-1}"
268+
mpl:
269+
colorbar: #TODO make this print correctly
270+
label : "gC ${m^-2 d^-1}"
271+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
272+
pct_diff_colormap: "PuOr_r"
273+
scale_factor_table: 0.000000365 #days to years, g/m2 to Pg globally
274+
avg_method: 'sum'
275+
table_unit: "PgC y$^{-1}"
276+
277+
AR: # Autotrophic Respiration
278+
category: "Carbon"
279+
colormap: "gist_earth_r"
280+
contour_levels_range: [0., 3., 0.25]
281+
diff_colormap: "BrBG"
282+
diff_contour_range: [-1.5, 1.5, 0.25]
283+
scale_factor: 86400
284+
add_offset: 0
285+
new_unit: "gC m$^{-2} d$^{-1}"
286+
mpl:
287+
colorbar:
288+
label : "gC m$^{-2} d$^{-1}"
289+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
290+
pct_diff_colormap: "PuOr_r"
291+
scale_factor_table: 0.000000365 #days to years, g/m2 to Pg globally
292+
avg_method: 'sum'
293+
table_unit: "PgC y$^{-1}"
294+
295+
NPP: # Net Primary Production
296+
category: "Carbon"
297+
colormap: "gist_earth_r"
298+
contour_levels_range: [0., 3., 0.25]
299+
diff_colormap: "PuOr_r"
300+
diff_contour_range: [-1.5, 1.5, 0.25]
301+
scale_factor: 86400
302+
add_offset: 0
303+
new_unit: "gC m$^{-2} d$^{-1}"
304+
mpl:
305+
colorbar:
306+
label : "gC m$^{-2} d$^{-1}"
307+
pct_diff_contour_levels: [-100,-75,-50,-40,-30,-20,-10,-8,-6,-4,-2,0,2,4,6,8,10,20,30,40,50,75,100]
308+
pct_diff_colormap: "PuOr_r"
309+
scale_factor_table: 0.000000365 #days to years, g/m2 to Pg globally
310+
avg_method: 'sum'
311+
table_unit: "PgC y$^{-1}"
312+
313+
TOTECOSYSC_1m:
314+
category: "Carbon"
315+
scale_factor_table: 0.000000001 #g/m2 to Pg globally
316+
avg_method: 'sum'
317+
table_unit: "PgC"
318+
319+
TOTSOMC_1m:
320+
category: "Carbon"
321+
322+
323+
TOTVEGC:
324+
category: "Carbon"
325+
326+
327+
#+++++++++++
328+
# Category: Soils
329+
#+++++++++++
330+
ALTMAX: # Active Layer Thickness
331+
category: "Soils"
332+
333+
334+
SOILWATER_10CM: # soil liquid water + ice in top 10cm of soil
335+
category: "Soils" # or hydrology?
336+
337+
TSOI_10CM: # Soil temperature, 0-10 cm
338+
category: "Soils"
339+
340+
341+
342+
#End of File

0 commit comments

Comments
 (0)