source: lmdz_wrf/trunk/tools/model_graphics_template.dat @ 1244

Last change on this file since 1244 was 1186, checked in by lfita, 8 years ago

Introducing projection without CDO

File size: 19.5 KB
Line 
1### ASCII file to manage `model_graphics.bash' from different models and experiments
2#  from each one
3#
4#  1: Variables choice using its CF name
5#  2: Kind of statisitcs to apply to the variable
6#  3: Kind of plot for the variable
7#  4: Kind of difference among models/experiments
8#
9# Different assumptions are made:
10#  - model outputs are organized as ${ifold}/${model}/${exp}
11#  - script outputs will be organized as ${ofold}/${model}/${exp}
12#  - when diagnostic might be required a new file will be created
13#  - WRF outputs will have added 'WRFtime' variable
14#
15# NOTE: in this file all the values are ':' separated lists without '
16
17# python HOME
18pyHOME = /home/lluis/etudes/WRF_LMDZ/svn/LMDZ_WRF/tools
19# cdo HOME
20cdoHOME = /home/lluis/bin/gcc_cdo/1.6.4rc6/bin
21
22# Srcatch: should be any previous work removed and start from the scratch? (overwrites all 'scratch' values)
23scratch = false
24
25# Scratch files: should be any files previous work removed and start from the scratch?
26filescratch = false
27
28# Scratch figures: should be any figures previous work removed and start from the scratch?
29figscratch = true
30
31# Scratch differences: should be any experiment differences previous work removed and start from the scratch?
32diffscratch = false
33
34# Scratch difference figures: should be any experiment difference figures previous work removed and start from the scratch?
35figdiffscratch = false
36
37# Scratch model differences: should be any model differences previous work removed and start from the scratch?
38moddiffscratch = false
39
40# Scratch model difference figures: should be any model difference figures previous work removed and start from the scratch?
41figmoddiffscratch = false
42
43# Scratch all model-experiments figures: should be any all model-experiments figures previous work removed and start from the scratch?
44figallmodexpscratch = false
45
46# Have new files, figures and differences been added and do they need to be processed? (overwrites all 'add' values)
47addall = false
48
49# Have new files been added and do they need to be processed?
50addfiles = false
51
52# Have new figures been added and do they need to be drawn?
53addfigures = true
54
55# Have new experiment differences been added and do they need to be processed and drawn?
56adddiffs = true
57
58# Have new experiment difference figures been added and do they need to be drawn?
59adddifffigures = true
60
61# Have new model differences been added and do they need to be processed and drawn?
62addmoddiffs = true
63
64# Have new model difference figures been added and do they need to be drawn?
65addmoddifffigures = true
66
67# Have new all model-experiment figures been added and do they need to be drawn?
68addallmodexpfigures = true
69
70# Debug
71debug = true
72
73# Folder with the files
74##ifold = /bdd/PCER/workspace/lfita/etudes/WRF_LMDZ/WaquaL/WRF_LMDZ
75ifold = /media/ExtDiskC_ext4/DATA/etudes/WRF_LMDZ/WaquaL_highres/short_copies
76
77# Output folder
78##ofold = /bdd/PCER/workspace/lfita/etudes/WRF_LMDZ/WaquaL/WRF_LMDZ
79ofold = /home/lluis/etudes/WRF_LMDZ/WaquaL_highres/tests/model_graphics
80
81# Models
82#   WRF: WRF
83#   LMDZ: LMDZ model
84#   WRF_LMDZ: LMDZ physics coupled to WRF
85models=WRF:WRF_LMDZ:LMDZ
86
87# Graphic characteristics for models
88#   Values to be used later in the graphics but not in '2lines'
89#    ':' separated list of [model]|[labmodel]|[color]|[linetype]|[marker]|[sizes]
90#     [model]: name of the model (equivalent to value in `models')
91#     [labmodel]: label of the model as it should appear in the graphics
92#     [color]: specific color of the model (and might related to all its experiments in lines plots)
93#     [linetype]: specific type of line of the model (and might related to all its experiments in lines plots)
94#     [marker]: specific marker of the model (and might related to all its experiments in lines plots)
95#     [sizes]: line width and point size for the model (and might related to all its experiments in lines plots)
96#     [tmodif]: time modification to apply to the model files ('None' for nothing)
97#       'setorigin',[YYYYMMDDHHMISS]: re-set origin of times at [YYYYMMDDHHMISS]
98#       
99modgraphchar = WRF|wrf|red|-|,|2.|None:WRF_LMDZ|wlmdz|green|-|,|2.|None:LMDZ|lmdz|blue|-|,|2.|setorigin,19800119000000
100
101# Experiments (labels of each experiment from each model)
102WRFexps = current:micro1:micro2
103LMDZexps = AR40:NPv31
104WRF_LMDZexps = AR40:NPv31
105
106# Graphic characteristics for models
107#   Values to be used later in the graphics but not in '2lines'
108#    ':' separated list of [model]|[exp]|[labexp]|[color]|[linetype]|[marker]|[sizes]
109#     [model]: name of the model (equivalent to value in `models')
110#     [exp]: name of the experiment (equivalent to value in `[model]exps')
111#     [labexp]: label of the experiment as it should appear in the graphics
112#   If any of the following values has the value 'asmodel', the equivalent value for [model] will be taken
113#     [color]: specific color of the model
114#     [linetype]: specific type of line of the model
115#     [marker]: specific marker of the model
116#     [sizes]: line width and point size for the model
117expgraphchar = WRF|current|wcurr|asmodel|asmodel|.|asmodel:WRF|micro1|wmp1|asmodel|asmodel|x|asmodel:WRF|micro2|wmp2|asmodel|asmodel|+|asmodel:LMDZ|AR40|lmdza|asmodel|asmodel|.|asmodel:LMDZ|NPv31|lmdzb|asmodel|asmodel|x|asmodel:WRF_LMDZ|AR40|wlmdza|asmodel|asmodel|.|asmodel:WRF_LMDZ|NPv31|wlmdzb|asmodel|asmodel|x|asmodel
118
119# Headers of the files to use
120WRFheaders = wrfout
121WRF_LMDZheaders = wrfout
122LMDZheaders = histins
123
124# CF times characteristics
125#   Reference time and units of the CF time for the output files
126CFreftime = 19491201000000
127CFunitstime = minutes
128
129# Kind of calculations (adding the equivalent `surname' to each variable)
130#   acc: temporal accumulated values
131#   diff: differences between models
132#   direct: no statistics
133#   last: last temporal value
134#   Lmean: latitudinal mean values
135#   Lsec: latitudinal section (latitudinal value must be given, [var]@[lat])
136#   lmean: longitudinal mean values
137#   lsec: longitudinal section (longitudinal value must be given, [var]@[lat])
138#   pinterp: pressure interpolation (to the given $plevels, see below)
139#   tmean: temporal mean values
140#   tstd: temporal standard deviation values
141#   tturb: Taylor's turbulence decomposition value (x - <x>) for time
142#   tvar: temporal variance values
143#   xmean: x-axis mean values
144#   xvar: x-axis variance values
145#   ymean: y-axis mean values
146#   zsum: vertical aggregated values
147# variables (providing CF-name, script must provide equivalent variable for each model)
148#   in foudre values from: ${HOME}/UNSW-CCRC-WRF/tools/postprocess/GMS-UC/WRF4G/util/postprocess/wrfncxnj/wrfncxnj.table
149#   must exist on the table $pyHOME/variables_values.dat
150#
151# Variables to compute (as possible multiple consecutive combination of operations must start by 'VAR_' separated by '+'
152#   VAR_[calc1]+[calc2] = tas:wss
153#     will compute first [calc1] and then [calc2] for 'tas' and 'wss'
154VAR_last = uas:vas
155#VAR_tmean = hfss:hfls
156#VAR_tstd = tas:wss
157#VAR_tvar+xmean = tas:wss:hurs
158#VAR_xvar+ymean = tas:wss:hurs
159VAR_tturb+xmean+last = tas:wss:hurs
160VAR_tturb+xmean+tmean = tas:wss:hurs
161#VAR_xmean = uas:vas:tas
162##VAR_last+pinterp+xmean = ua:va:hur:hus:turb
163#VAR_pinterp+tmean+xmean = hus:ta
164
165# ':' seaprated list of operations which can not be re-projected (due to the lack of both coordinates: 'lon' and 'lat')
166NOreprojops = lmean:Lmean:xmean:ymean:turb
167
168# Operations which attach a 'surname' at the end of the variable name
169#  Values are given as opsur_[surname] = [operation1]:[operation2][:...[operationN]]
170#    opsur_mean = tmean:xmean
171#      e.g.: once 'tmean', or 'xmean' are computed, variable [varn] will become [varn]mean
172opsur_mean = Lmean:lmean:tmean:xmean:ymean
173opsur_std = tstd
174opsur_turb = tturb
175opsur_var = tvar:xvar
176
177# Text as title for each operation
178#   as ':' separated list of [op]|[explanation '!' as spaces]
179titleoperations = acc|tacc:diff|diff:direct|!:last|last:Lmean|latmean:Lsec|latsec:lmean|lonmean:lsec|lonsec:pinterp|pinterp:tmean|tmean:tstd|tstd:tturb|tturb:tvar|tvar:xmean|xmean:xvar|xvar:ymean|ymean:zsum|zsum
180
181# Pressure levels
182#   Common vertical pressure levels (in Pa) to vertically interpolate
183#39Lowp#plevels = 100500.:100000.:98500.:97500.:95000.:92500.:90000.:87500.:85000.:80000.:75000.:70000.:65000.:60000.:55000.:50000.:45000.:40000.:35000.:30000.:25000.:20000.:15000.:10000.:900.:800.:700.:600.:500.:400.:300.:200.::1000.:85.:50.:40.:30.:20.:10.
184#26#plevels = 100000.:97500.:95000.:92500.:90000.:85000.:80000.:75000.:70000.:65000.:60000.:55000.:50000.:45000.:40000.:35000.:30000.:25000.:20000.:15000.:10000.:5000.:2500.:1000.:500.:250.
185plevels = 100000.:97500.:95000.:92500.:90000.:85000.:80000.:75000.:70000.:65000.:60000.:55000.:50000.:45000.:40000.:35000.:30000.:25000.:20000.:15000.:10000.:5000.:2500.:1000.:500.:250.
186
187# Variables reprojection to compute differences among models (which might use different projections)
188# ':' separated list of models to use as reference for the common projection
189RefProj = WRF:WRF_LMDZ
190
191# Reprojection methodologies using `RefProj' as common projection
192#
193# CDO remapping option to be used for each variable
194#  ':' separated list for each of CDO's operators (version depending) to use for each variable
195#  List of available remapping operators from CDO v 1.6.4rc6
196#    remapbil   Bilinear interpolation
197#               Performs a bilinear interpolation on all input fields.
198#               This interpolation method only works on quadrilateral curvilinear grids.
199#    remapbic   Bicubic interpolation
200#               Performs a bicubic interpolation on all input fields.
201#               This interpolation method only works on quadrilateral curvilinear grids.
202#    remapdis   Distance-weighted average remapping
203#               Performs a distance-weighted average remapping of the four nearest neighbor
204#               values on all input fields.
205#    remapnn    Nearest neighbor remapping
206#               Performs a nearest neighbor remapping on all input fields.
207# Operators only available if projections have the corners of the grid points.
208#    remapcon   First order conservative remapping
209#               Performs a first order conservative remapping on all input fields.
210#    remapcon2  Second order conservative remapping
211#               Performs a second order conservative remapping on all input fields.
212#    remaplaf   Largest area fraction remapping
213#               Performs a largest area fraction remapping on all input fields.
214####### ####### ####### or additionally ####### ####### #######
215# python remapping
216#   remapping using functions created on purpose
217#    dis        Distance-weighted average remapping
218#               Performs a distance-weighted average remapping of the four nearest neighbor
219#               values on all input fields.
220#    pnn        Nearest neighbor remapping
221#               Performs a nearest neighbor remapping on all input fields.
222reprojectvar_dis = uas:vas:wss
223reprojectvar_pnn = hfls:hfss:hus:hurs
224reprojectvar_remapbic = tas:ta
225
226# Differences to compute
227#   These differences will be computed among experiments and among models (and model-experiments)
228#  ':' separated list of [var]|[op]
229#  DIFFOP_[op]: differences of the [op] of [var]. NOTE: [op] must exist for each experiment
230#    Differences are computed directly from the last stage of the operation
231#  DIFFVAR_[op]: [op] of the [var] differences [var]. NOTE: [var] must exist for each experiment
232#    First are computed the differences from the initial variable file and then operations are made
233# NOTE: remember that: meanvar2 - meanvar1 = mean(var2 - var1)
234# NOTE2: For that variables with an opertion from which coordinates 'lon', 'lat' are reduced
235#   One cannot compute model differences as 'DIFFOP' since there is no way to re-project
236#   data which has already lost one of the coordinates variable
237#
238DIFFOP_last = uas:vas
239#DIFFOP_tmean = hfss:hfls
240#DIFFOP_xmean = uas:vas
241#DIFFOP_tstd = tas:wss
242#DIFFOP_tvar = tas:wss
243#DIFFOP_pinterp+tmean+xmean = hus:ta
244
245#DIFFVAR_last = uas:vas
246#DIFFVAR_tmean = hfss:hfls
247#DIFFVAR_xmean = uas:vas
248#DIFFVAR_tstd = tas:wss
249#DIFFVAR_tvar+xmean = tas:wss:hurs
250#DIFFVAR_xvar+ymean = tas:wss:hurs
251DIFFVAR_tturb+xmean = tas:wss:hurs
252DIFFVAR_tturb+xmean+last = tas:wss:hurs
253DIFFVAR_tturb+xmean+tmean = tas:wss:hurs
254#DIFFVAR_pinterp+tmean+xmean = hus:ta
255
256# Kind of plots
257#   diffmap2Dsfc: 2D map of surface differences values of 1 variable
258#   diffmap2Dz: 2D map of 3D differences values of 1 variable
259#   map2Dsfc: 2D map of surface values of 1 variable
260#   2lines: 1D plot with 2 lines with values at each x/x2 or y/y2 axes
261#   2lines_time: 1D plot with 2 time-lines with values at each x/x2 or y/y2 axes
262#   Nlines: 1D plot with N lines (only for all models/experimenst figures)
263#   Nlines_time: 1D plot with N time-lines (only for all models/experimenst figures)
264#   shadconthovmsfc: Hovmoeller diagrams of 2 variables at the surface one in shadow and the other in contourn
265#   shadcont2Dsfc: 2D map of shadow (1st variable) and countour (2nd variable) [stvar1]#[stvar2]
266#   shadcont2Dzsec: 2D map of vertical section of 2 variables one in shadow and the other in contourn
267#
268#   ':' separated list of statitsics variable values are given as: [var]|['+' separated list of operations]
269#     in figures with more than 1 variable, use '#' to separate them
270# DIRPLT_: Figures which can be made directly without another model/experiment output
271
272#DIRPLT_shadcont2Dsfc = uas|last#vas|last:hfls|tmean#hfss|tmean:uas|last#vas|last:tas|tstd#wss|tstd:wss|tvar#tas|tvar
273#DIRPLT_shadcont2Dsfc = hfls|tmean#hfss|tmean:wss|tvar#tas|tvar
274DIRPLT_shadcont2Dsfc = uas|last#vas|last
275#DIRPLT_shadconthovmsfc = uas|xmean#vas|xmean:uas|xmean#tas|xmean
276#DIRPLT_shadcont2Dzsec = hus|pinterp+tmean+xmean#ta|pinterp+tmean+xmean
277DIRPLT_2lines = wss|tturb+xmean+last#tas|tturb+xmean+last:wss|tturb+xmean+tmean#tas|tturb+xmean+tmean
278#DIRPLT_2linesTime = wss|xvar+ymean#tas|xvar+ymean
279
280#PLOTDIFFOP_shadcont2Dsfc = uas|last#vas|last:hfls|tmean#hfss|tmean:uas|last#vas|last:tas|tstd#wss|tstd:wss|tvar#tas|tvar
281#PLOTDIFFOP_shadcont2Dsfc = hfls|tmean#hfss|tmean:wss|tvar#tas|tvar
282PLOTDIFFOP_shadcont2Dsfc = uas|last#vas|last
283#PLOTDIFFOP_shadconthovmsfc = uas|xmean#vas|xmean
284#PLOTDIFFOP_shadcont2Dzsec = hus|pinterp+tmean+xmean#ta|pinterp+tmean+xmean
285
286#PLOTDIFFVAR_shadcont2Dsfc = uas|last#vas|last:hfls|tmean#hfss|tmean:uas|last#vas|last:tas|tstd#wss|tstd:wss|tvar#tas|tvar
287#PLOTDIFFVAR_shadcont2Dsfc = hfls|tmean#hfss|tmean:wss|tvar#tas|tvar
288#PLOTDIFFVAR_shadconthovmsfc = uas|xmean#vas|xmean
289PLOTDIFFVAR_shadconthovmsfc = wss|tturb+xmean#tas|tturb+xmean
290#PLOTDIFFVAR_shadcont2Dzsec = hus|pinterp+tmean+xmean#ta|pinterp+tmean+xmean
291PLOTDIFFVAR_2lines = wss|tturb+xmean+last#tas|tturb+xmean+last:wss|tturb+xmean+tmean#tas|tturb+xmean+tmean
292#PLOTDIFFVAR_2linesTime = wss|xvar+ymean#tas|xvar+ymean
293
294PLOTALLMODEXP_Nlines = wss|tturb+xmean+last:tas|tturb+xmean+last:hurs|tturb+xmean+last:wss|tturb+xmean+tmean:tas|tturb+xmean+tmean:hurs|tturb+xmean+tmean
295#PLOTALLMODEXP_Nlines_time = wss|xvar+ymean:tas|xvar+ymean
296
297# Specific variable-statistisc graphic parameters (if no value is given, they will be retrieved from 'variables_values.dat')
298#  ':' separated list of specific parameters for plotting as:
299#      [varname]|[operation]|[minval]|[maxval]|[colorbar]|[cntformat]|[colorcnt]
300#        [varname]: name of the variable
301#        [operation]: '+' separated list of operations
302#        [figure]: figure to be used
303#        [minval]: minimum value
304#        [maxval]: minimum value
305#        [colorbar]: name of the colorbar (from matplotlib) to use
306#        [cntformat]: format of the contour labels
307#        [cntkind]: kind of contours
308#          'cmap': as it gets from colorcnt (which in this case must be a valid colorbar)
309#          'fixc': fixed color [colname], all stright lines
310#          'fixsigc': fixed color [colname], >0 stright, <0 dashed  line
311#        [colorcnt]: color for the countor lines
312#  NOTE: meaning of values change by lines-plots
313#  ':' separated list of specific parameters for plotting as:
314#      [varname]|[operation]|[minval]|[maxval]|[lcolor]|[lformat]|[lmark]|[wdthsz]
315#        [varname]: name of the variable
316#        [operation]: '+' separated list of operations
317#        [figure]: figure to be used
318#        [minval]: minimum value
319#        [maxval]: minimum value
320#        [lcolor]: name of the color for the line to use
321#        [lformat]: format of the line ('-', straight, '-.', etc...)
322#        [lmark]: marker of the line
323#        [wdthsz]: width of line and size of marker
324specificvarplot = cll|last|shadcont2Dsfc|0.|1.|gist_gray|%g|fixc|black:clh|last|shadcont2Dsfc|0.|1.|gist_gray|%g|fixc|black:husturbmean|pinterp@turb@xmean|shadcont2Dzsec|0.|1.e-6|Blues|%g|fixc|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|fixc|black:wss|tstd|shadcont2Dsfc|0.|10.|Blues|%g|fixc|black:tas|tstd|shadcont2Dsfc|0.|100.|Reds|%g|fixc|black:wss|tstd|shadcont2Dsfc|0.|100.|Blues|%g|fixc|black:hfss|xmean|shadconthovmsfc|-40.|40.|Reds|%g|fixc|black:tas|tstd|shadcont2Dsfc|0.|1.5|Reds|%g|fixc|black:tas|tvar|shadcont2Dsfc|0.|1.5|Reds|%g|fixc|black:wss|tstd|shadcont2Dsfc|0.|8.|Greens|%g|fixc|black:wss|xvar+ymean|2linesTime|0.|15.|green|-|,|2.:tas|xvar+ymean|2linesTime|0.|2.|blue|-|,|2.
325specificdiffopplot = hfls|tmean|shadcont2Dsfc|-800.|800.|seismic|%g|fixsigc|black:hfss|tmean|shadcont2Dsfc|-300.|300.|seismic|%g|fixsigc|black:hfls|last|shadcont2Dsfc|-800.|800.|seismic|%g|fixsigc|black:hfss|last|shadcont2Dsfc|-400.|400.|seismic|%g|fixsigc|black:uas|xmean|shadcont2Dsfc|-20.|20.|seismic|%g|fixsigc|black:vas|xmean|shadcont2Dsfc|-30.|30.|seismic|%g|fixsigc|black:ua|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|fixsigc|black:va|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|fixsigc|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|fixsigc|black:wss|tstd|shadcont2Dsfc|0.|10.|Blues|%g|fixsigc|black:tas|tvar|shadcont2Dsfc|0.|4.|Reds|%g|fixsigc|black:wss|tvar|shadcont2Dsfc|0.|30.|Blues|%g|fixsigc|black:hfss|xmean|shadconthovmsfc|-40.|40.|Reds|%g|fixsigc|black:hus|pinterp+tmean+xmean|shadcont2Dzsec|-0.001|0.001|seismic|%g|fixsigc|black:ta|pinterp+tmean+xmean|shadcont2Dzsec|-5.|5.|seismic|%g|fixsigc|black:wss|xvar+ymean|2linesTime|0.|15.|green|-|,|2.:tas|xvar+ymean|2linesTime|0.|2.|blue|-|,|2.
326specificdiffvarplot = hfls|tmean|shadcont2Dsfc|-800.|800.|seismic|%g|fixsigc|black:hfss|tmean|shadcont2Dsfc|-300.|300.|seismic|%g|fixsigc|black:hfls|last|shadcont2Dsfc|-800.|800.|seismic|%g|fixsigc|black:hfss|last|shadcont2Dsfc|-400.|400.|seismic|%g|fixsigc|black:uas|xmean|shadcont2Dsfc|-20.|20.|seismic|%g|fixsigc|black:vas|xmean|shadcont2Dsfc|-30.|30.|seismic|%g|fixsigc|black:ua|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|fixsigc|black:va|pinterp+tmean+xmean|shadcont2Dsfc|-20.|20.|seismic|%g|fixsigc|black:tas|tstd|shadcont2Dsfc|0.|10.|Reds|%g|fixsigc|black:wss|tvar|shadcont2Dsfc|0.|40.|Blues|%g|fixsigc|black:tas|tvar|shadcont2Dsfc|0.|4.|Reds|%g|fixsigc|black:wss|tstd|shadcont2Dsfc|0.|100.|Blues|%g|fixsigc|black:hfss|xmean|shadconthovmsfc|-40.|40.|Reds|%g|fixsigc|black:hus|pinterp+tmean+xmean|shadcont2Dzsec|-0.003|0.003|seismic|%g|fixsigc|black:ta|pinterp+tmean+xmean|shadcont2Dzsec|-80.|80.|seismic|%g|fixsigc|black:wss|xvar+ymean|2linesTime|0.|25.|green|-|,|2.:tas|xvar+ymean|2linesTime|0.|3.|blue|-|,|2.
327
328# Figures output kind
329kindfig = pdf
330
331# Map to use
332mapval = None
333
334# Time parameters
335#  [timekind]; kind of output for the time ticks
336#     'Nval': according to a given number of values as 'Nval',[Nval]
337#     'exct': according to an exact number [Nunits] of time unit as 'exct',[tunit];
338#       tunit= [Nunits],[tu]
339#         [tu]= 'c': centuries, 'y': year, 'm': month, 'w': week, 'd': day, 'h': hour, 'i': minute, 's': second, 'l': milisecond
340#  [timefmt]; desired format for the time ticks (combination of LaTeX and 'linux date formats')
341#  [timelabel]; label at the graph ('!' for spaces)
342timekind = exct,1,d
343timefmt = $%d^{%H}$
344timelabel = date!($[DD]^{[HH]}$)
345
346# Generic
347errmsg = ERROR--error--ERROR--error
348warnmsg = WARNING--warning--WARNING--warning
349
Note: See TracBrowser for help on using the repository browser.