Plotting multiple WindRose at the same time
draw_multiWindRose(ncfiles, values)
Function to plot multiple wind rose (from where the dinw blows)
ncfiles='#' separated list of [filen]@[dimvals]@[uvarn],[vvarn]
[filen]: name of the file
[dimvals]: ';' list of [dimn]|[dvalue] dimension and slice along dimension to retrieve the winds
[dimn]: name of the dimension
[dvalue]: value for the slice in the given dimension
* [integer]: which value of the dimension
* -1: all along the dimension
* -9: last value of the dimension
* [beg],[end],[freq] slice from [beg] to [end] every [freq]
* NOTE, no dim name all the dimension size
No value takes all the range of the dimension
[uvarn],[vvarn]: name of the x and y wind components
values=[kindRose]:[labels]:[imgtit]:[imgkind]:[kindlabelsangle]:[close]
[kindRose]: [kind];[value1];[...[valueN]] Kind of rose to plot and values of the kind
'linepoint': consecutive (time, height, level, ...) line-point angle and speed values. Three different species
'multicol': line-marker color changing according to a third variable [extravarn]
values: [extravarn];[lines];[markers];[freqmarkers];[colbar];[Nang]
'multicoltime': line-marker color changing according to a temporal variable [extravarn]
values: [extravarn];[lines];[markers];[colbar];[Nang];[timekind];[timefmt];[timelabel]
'singlecol': same color for the line-marker
values: [lines];[markers];[cols];[Nang]
'scatter': a marker for each wind at different values (time, height, level, ...). Three different species
'multicol':marker color changing according to a third variable [extravarn]
values: [extravarn];[markers];[colbar];[Nang]
'multicoltime': marker color changing according to a temporal variable [extravarn]
values: [extravarn];[lines];[markers];[colbar];[Nang];[timekind];[timefmt];[timelabel]
'singlecol': same color for all the markers
values: [markers];[cols];[Nang]
meaning (where apply):
[extravarn]: name of the extra variable
[lines]: '@' separated list of type of lines (matplotlib ref)
[markers]: '@' separated list of type of markers to use (matplotlib ref)
[freqmarkers]: '@' separated list of frequency of drawing markers ('auto' for every 10)
[cols] = '@' separated list of colors ('#[RR][GG][BB])
[colbar]: name of the colorbar ('auto' for 'spectral_r')
[Nang]: number of angles to divide the rose ('auto' for 8)
[Nspeed]: number of speeds to divide the wind speed distribution ('auto' for 8)
[maxspeed]: maximum wind speed used to compute the frequency of distributions ('auto' for 40.)
[timekind]; time computation of ticks
'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]; desired format of time labels (C-like)
[timelabel]; label of time colorbar at the graph ('!' for spaces)
labels: ',' separated list of labels for the legend ('None' for no label)
imgtit: title of the image ('!' for spaces)
imgkind: kind of file output of the image (ps, pns, pdf, ...)
kindlabelsangle: kind of labels for the angles of the wind Rose
'cardianals': Following combinations of 'N', 'E', 'S', 'W' according to Nang
close: whether figure should be closed or not
$ python ${pyHOME}/drawing.py -o draw_multiWindRose -f 'sounding_uava_87418.nc@pres|1,1401,1;time|
33@ua,va#UBA_ERA-I_1a_snd_mendoza.nc@pres|-1;time|0@ua,va#UBA_ERA5_1a_snd_mendoza.nc@pres|-1;
time|0@ua,va#UBA_morrison_MYNN_snd_mendoza.nc@pres|-1;time|0@ua,va#SMN_snd_mendoza.nc@pres|-1;
time|0@ua,va#UBA_ERA-I_smnphys_snd_mendoza.nc@pres|-1;time|0@ua,va' -S 'linepoint;multicol;
pres;-;x@+@>@s@*@<;1@10@10@10@10@10;spectral;auto:obs,1a,era5_1a,sens,SMN,smnphys:WindRose!
obs!,!sim!comparison!at!87418!on!2015!Nov!18!00!UTC:png:auto:True'