Plotting a Time Series with line-markers
draw_timeSeries(filen, values, variables)
filen= name of the file
values= [dimvalues]:[sminv],[smaxv]:[gvarname]:[timetit]:[tkind]:[timefmt]:[title]:[legvals]:
[gkind]:[colorlines]:[typelines]:[widthlines]:[pointtype]:[pointfreq]:[figclose]
[dimvalues]= ',' separated list of [dimname]|[slice]
[dimname]: name of dimension
[slice]: value to take for the given dimension
* [integer]: which value of the dimension
* -1: all along the dimension
* [beg]@[end]@[freq] slice from [beg] to [end] every [freq]
* -9: last value of the dimension
[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)
[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 (C-like)
[title]: title of the graphic ('|' for spaces)
[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)
[gkind]: kind of graphical output
[colorlines]: ',' list of colors 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
[pointfreq]: frequency of point plotting, 'all' for all time steps
[figclose]: whether figure should be closed or not
variables= [varname],[timename] names of variable and variable with times
$ python ${pyHOME}/drawing.py -o draw_TimeSeries -f ERAI_pl199501_131-132.nc -S 'lon|240,lat|120,time|-1,lev|0:Srange,Srange:ua:date|($[MM]^{[DD]}$):exct,15,d:$%m^{%d}$:January|1995|ERA-Interim|x-wind|at|i=240,|j=120,|k=0:ua:0|12:png:r:-:2:x:2:20:yes' -v var131,time