Plotting a series of multiples 1D curves which share one time-dimension
draw_lines_time(ncfilens, values, varnames):
ncfilens= [filen] ',' separated list of netCDF files
values= [dimvname];[valuesaxis];[dimtit];[dimxyfmt];[leglabels];[vtit];[title];[rangevals];[timevals];
[legvals];[graphk];[collines];[points];[linewidths];[pointsizes];[pointfreq];[period];[close]
[dimvname]: ',' list of names of the variables with he values of the common dimension ('WRFtime' for WRF Times variable)
[valuesaxis]: which axis will be used for the values ('x', or 'y')
[dimtit]: title for the common dimension ('|' for spaces)
[dimxyfmt]=[dxs],[dxf],[Ndx],[ordx],[dys],[dyf],[Ndy],[ordx]: format of the values at each axis (or 'auto')
[dxs]: style of x-axis ('auto' for 'pretty')
'Nfix', values computed at even 'Ndx'
'Vfix', values computed at even 'Ndx' increments
'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals (2.,2.5,4,5,10)
[dxf]: format of the labels at the x-axis ('auto' for '%5g')
[Ndx]: Number of ticks at the x-axis ('auto' for 5)
[ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)
[dys]: style of y-axis ('auto' for 'pretty')
[dyf]: format of the labels at the y-axis ('auto' for '%5g')
[Ndy]: Number of ticks at the y-axis ('auto' for 5)
[ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)
[leglabels]: ',' separated list of names for the legend ('None', no legend '!' for spaces, '*' for no label)
[vartit]: name of the variable in the graph
[title]: title of the plot ('|' for spaces)
[rangevals]: Range of the axis with the values ('None' for 'auto','auto')
[vmin],[vmax]: minimum and maximum values where [vmNN] can also be:
'auto': the computed minimumm or maximum of the values
[timevals]: [timen]|[units]|[kind]|[tfmt] time labels characteristics
[timen]; name of the time variable
[units]; units string according to CF conventions ([tunits] since
[YYYY]-[MM]-[DD] [[HH]:[MI]:[SS]], '!' for spaces)
[kind]; kind of output
'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
[tfmt]; desired format
[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)
[graphk]: kind of the graphic
[lines]: ',' list of type of lines, None for automatic, single value all the same
[collines]: ',' list of colors for the lines, None for automatic, single
value all the same
[points]: '@' list of type of points for the lines, None for automatic, single
value all the same
[linewidths]: ',' list of widths for the lines, None for automatic, single
value all the same
[pointsizes]: ',' list of widths for the lines, None for automatic, single
value all the same
[pointfreq]: frequency of point plotting, 'all' for all time steps
[period]: which period to plot
'-1': all period
[beg],[end]: beginning and end of the period in reference time-units of first file
[close]: Whether figure should be finished or not
varnames= ',' list of variable names to plot (assuming only 1 variable per file)
$ python ${pyHOME}/drawing.py -o draw_lines_time -f wrfout_d01_2001-11-11_00:00:00_west_east_B20-E20-I1_south_north_B20-E20-I1.nc,wrfout_d01_2001-11-11_00:00:00_west_east_B25-E25-I1_south_north_B25-E25-I1.nc,wrfout_d01_2001-11-11_00:00:00_west_east_B35-E35-I1_south_north_B35-E35-I1.nc -S 'WRFtime;y;time ([DD]${[HH]}$);auto;we=20$\times$sn=20,we=25$\times$sn=25,we=35$\times$sn=35;tas;tas|evolution|at|3|different|grid|points;None;time|hours!since!1949-12-01_00:00:00|exct,3,h|%d$^{%H}$;0|12;png;-;r,g,b;.;2.;2.;all;-1;True' -v T2