Plotting a Wind Rose (from where the dinw blows)
draw_WindRose(ncfile, values, varnames)
ncfile= netCDF file with the winds and extra variable (if required)
values=[dimvariables][kindRose]:[imgtit]:[imgkind]:[kindlabelsangle]:[freqfileout]:[fname]:[close]
[dimvariables]: ';' 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
[kindRose]: [kind];[value1];[...[valueN]] Kind of rose to plot and values of the kind
'fill': filling the area since the center of the rose
'anglespeedfreq': grid of frequencies of each angle and speed following a given discretization
values: ;[Nang];[Nspeed];[maxspeed];[cbar];[maxfreq]
'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];[line];[marker];[colbar];[Nang]
'multicoltime': line-marker color changing according to a temporal variable [extravarn]
values: [extravarn];[line];[marker];[colbar];[Nang];[timekind];[timefmt];[timelabel]
'singlecol': same color for the line-marker
values: [line];[marker];[col];[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];[marker];[colbar];[Nang]
'multicoltime': marker color changing according to a temporal variable [extravarn]
values: [extravarn];[line];[marker];[colbar];[Nang];[timekind];[timefmt];[timelabel]
'singlecol': same color for all the markers
values: [marker];[col];[Nang]
meaning (where apply):
[extravarn]: name of the extra variable
[line]: type of the line to draw
[marker]: type of marker to use
[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)
imgtit: title of the image ('!' for spaces)
imgkind: kind of output of the image
kindlabelsangle: kind of labels for the angles of the wind Rose
'cardianals': Following combinations of 'N', 'E', 'S', 'W' according to Nang
freqfileout: whether the file with the frequencies of wind angle and speeds should be created (only working
for 'anglespeedfreq')
fname: name of the figure
close: whether figure should be closed or not
varnames= [windun],[windvn] variables' name
$ python ${pyHOME}/drawing.py -o draw_WindRose -S 'lon|7;lat|2:anglespeedfreq;16;8;40.;auto;auto:November!ERA-I!daily!mean!wind!at!850!hPa:png:cardinals:False:WindRose:True' -v u,v -f reg1_daymean_mon11_lev850_kmh.nc
$ python ${pyHOME}/drawing.py -o draw_WindRose -S 'lon|7;lat|2:linepoint;multicoltime;time;auto;auto;auto;auto;exct,5,d;%m/%d;date!([DD]/[MM]):November!ERA-I!daily!mean!wind!at!850!hPa:png:cardinals:False:WindRose:True' -v u,v -f reg1_daymean_mon11_lev850_kmh.nc