Function to draw values from the outputs from 'compute_tevolboxtraj'. Different statistics of a given variable following a trajectory
draw_vals_trajectories(ncfile, values, variable)
ncfile= [ncfile] ',' list of files to use
values= [statisticskind]:[sminv],[smaxv]:[Tint]:[labels]:[legvals]:[gvarname]:[timetit]:[tkind]:
[timefmt]:[title]:[gkind]:[colorlines]:[typelines]:[widthlines]:[pointtype]:[pointsizee]:[pointfreq]:[figclose]
[statisticskind]=[statistics][kind]
[statistics]: which statistics to use, from: 'center', 'min', 'max', 'mean',
'mean2', 'stdev'
[kind]: 'box', 'circle' statistics taking the values from a box or a circle
'trj': value following the trajectory
[sminv],[smaxv]: minimum and maximum value for the lines or one value for each extreme:
'Srange': for full range
'Saroundmean@val': for mean-xtrm,mean+xtrm where xtrm = np.min(mean-min@val,max@val-mean)
'Saroundminmax@val': for min*val,max*val
'Saroundpercentile@val': for median-xtrm,median+xtrm where xtrm = np.min(median-percentile_(val),
percentile_(100-val)-median)
'Smean@val': for -xtrm,xtrm where xtrm = np.min(mean-min*@val,max*@val-mean)
'Smedian@val': for -xtrm,xtrm where xtrm = np.min(median-min@val,max@val-median)
'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),
percentile_(100-val)-median)
[Tint]: [Tbeg]@[Tend] or None, interval of time to plot or -1 for all the times
[leglabels]: ',' separated list of labels for the legend
[legvals]=[locleg]|[fontsize]:
[locleg]: location of the legend (0, autmoatic)
1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',
5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',
9: 'upper center', 10: 'center'
[fontsize]: font size for the legend (auto for 12)
[gvarname]: name of the variable to appear in the graph
[timetit]: title of the time axis (assumed x-axis, '|' for spaces)
[tkind]: kind of time to appear in the graph (assumed x-axis)
'Nval': according to a given number of values as 'Nval',[Nval]
'exct': according to an exact time unit as 'exct',[tunit];
tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,
'w': week, 'd': day, 'h': hour, 'i': minute, 's': second,
'l': milisecond
[timefmt]: format of the time labels
[title]: title of the graphic ('|' for spaces)
[gkind]: kind of graphical output
[colorlines]: ',' list of colors for the lines, 'None' for automatic, single
value all the same
[typelines]: ',' list of types for the lines, 'None' for automatic, single
value all the same
[widthlines]: ',' list of width for the lines, 'None' for automatic, single
value all the same
[pointtype]: ',' list of type of points for the lines, 'None' for automatic, single
value all the same
[pointsizee]: ',' list of size of points for the lines, 'None' for automatic, single
value all the same
[pointfreq]: frequency of point plotting, 'all' for all time steps
[figclose]: whether figure should be close or not
variable= variable to use
$ python ${pyHOME}/drawing.py -o draw_vals_trajectories -f /media/lluis/ExtDiskD/bkup/foudre/etudes/WL_HyMeX/medic950116/wlmdza/tevol_boxtraj.nc,/media/lluis/ExtDiskD/bkup/foudre/etudes/WL_HyMeX/medic950116/wlmdzb/tevol_boxtraj.nc,/media/lluis/ExtDiskD/bkup/foudre/etudes/WL_HyMeX/medic950116/control/tevol_boxtraj.nc -S 'maxcircle:Srange,Srange:-1:$WRF_{CRM}$,$LMDZ_{AR4.0}$,$LMDZ_{NPv3.1}$:0|12:wss:time|($[DD]^[HH]$):exct,6,h:$%d^{%H}$:trajectory|following|mean:png:None:-:2:x:1.5:all:True' -v wss