source: lmdz_wrf/trunk/tools/documentation/plotting/multiWindRose.html @ 2274

Last change on this file since 2274 was 2128, checked in by lfita, 6 years ago

Adding:

  • Documentation for `draw_2D_shad_contdisc'
  • Documentation for `draw_multiWindRose'
  • Documentation for `draw_stations_map'
  • Documentation for `draw_WRFeta_levels'
  • Adding 'Ncol' and 'runmean' into `draw_lines_time'
  • Documentation for `draw_2Dshad_map'
File size: 7.0 KB
Line 
1<HTML>
2  <HEAD>
3    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"/>
4    <LINK REL="stylesheet" TYPE="text/css" HREF="../PyNCplot.css"/>
5  </HEAD>
6
7  </HEAD>
8  <BODY>
9    <DIV CLASS="valheader">
10      2D shadow plot
11    </DIV>
12    <DIV CLASS="valimg">
13      Plotting multiple WindRose at the same time
14      <IMG WIDTH="100%" SRC="figs/WindRose_obs-sim_step_Case6_87418_20151118000000.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17      draw_multiWindRose(ncfiles, values)<BR>
18      Function to plot multiple wind rose (from where the dinw blows)<BR>
19      &nbsp;&nbsp;ncfiles='#' separated list of [filen]@[dimvals]@[uvarn],[vvarn]<BR>
20      &nbsp;&nbsp;&nbsp;&nbsp;[filen]: name of the file<BR>
21      &nbsp;&nbsp;&nbsp;&nbsp;[dimvals]: ';' list of [dimn]|[dvalue] dimension and slice along dimension to retrieve the winds<BR>
22      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dimn]: name of the dimension<BR>
23      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dvalue]: value for the slice in the given dimension<BR>
24      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* [integer]: which value of the dimension<BR>
25      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* -1: all along the dimension<BR>
26      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* -9: last value of the dimension<BR>
27      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* [beg],[end],[freq] slice from [beg] to [end] every [freq]<BR>
28      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* NOTE, no dim name all the dimension size<BR>
29      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No value takes all the range of the dimension<BR>
30      &nbsp;&nbsp;&nbsp;&nbsp;[uvarn],[vvarn]: name of the x and y wind components<BR>
31      &nbsp;&nbsp;values=[kindRose]:[labels]:[imgtit]:[imgkind]:[kindlabelsangle]:[close]<BR>
32      &nbsp;&nbsp;&nbsp;&nbsp;[kindRose]: [kind];[value1];[...[valueN]] Kind of rose to plot and values of the kind<BR>
33      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'linepoint': consecutive (time, height, level, ...) line-point angle and speed values. Three different species<BR>
34      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'multicol': line-marker color changing according to a third variable [extravarn]<BR>
35      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: [extravarn];[lines];[markers];[freqmarkers];[colbar];[Nang]<BR>
36      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'multicoltime': line-marker color changing according to a temporal variable [extravarn]<BR>
37      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: [extravarn];[lines];[markers];[colbar];[Nang];[timekind];[timefmt];[timelabel]<BR>
38      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'singlecol': same color for the line-marker<BR>
39      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: [lines];[markers];[cols];[Nang]<BR>
40      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'scatter': a marker for each wind at different values (time, height, level, ...). Three different species<BR>
41      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'multicol':marker color changing according to a third variable [extravarn]<BR>
42      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: [extravarn];[markers];[colbar];[Nang]<BR>
43      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'multicoltime': marker color changing according to a temporal variable [extravarn]<BR>
44      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: [extravarn];[lines];[markers];[colbar];[Nang];[timekind];[timefmt];[timelabel]<BR>
45      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'singlecol': same color for all the markers<BR>
46      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;values: [markers];[cols];[Nang]<BR>
47      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;meaning (where apply):<BR>
48      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[extravarn]: name of the extra variable <BR>
49      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[lines]: '@' separated list of type of lines (matplotlib ref)<BR>
50      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[markers]: '@' separated list of type of markers to use (matplotlib ref)<BR>
51      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[freqmarkers]: '@' separated list of frequency of drawing markers ('auto' for every 10)<BR>
52      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[cols] = '@' separated list of colors ('#[RR][GG][BB])<BR>
53      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[colbar]: name of the colorbar ('auto' for 'spectral_r')<BR>
54      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Nang]: number of angles to divide the rose ('auto' for 8)<BR>
55      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Nspeed]: number of speeds to divide the wind speed distribution ('auto' for 8)<BR>
56      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[maxspeed]: maximum wind speed used to compute the frequency of distributions ('auto' for 40.)<BR>
57      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[timekind]; time computation of ticks<BR>
58      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Nval': according to a given number of values as 'Nval',[Nval]<BR>
59      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'exct': according to an exact time unit as 'exct',[tunit]; <BR>
60      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,<BR>
61      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'w': week, 'd': day, 'h': hour, 'i': minute, 's': second, <BR>
62      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'l': milisecond<BR>
63      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[timefmt]; desired format of time labels (C-like)<BR>
64      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[timelabel]; label of time colorbar at the graph ('!' for spaces)<BR>
65      &nbsp;&nbsp;&nbsp;&nbsp;labels: ',' separated list of labels for the legend ('None' for no label)<BR>
66      &nbsp;&nbsp;&nbsp;&nbsp;imgtit: title of the image ('!' for spaces)<BR>
67      &nbsp;&nbsp;&nbsp;&nbsp;imgkind: kind of file output of the image (ps, pns, pdf, ...)<BR>
68      &nbsp;&nbsp;&nbsp;&nbsp;kindlabelsangle: kind of labels for the angles of the wind Rose<BR>
69      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'cardianals': Following combinations of 'N', 'E', 'S', 'W' according to Nang<BR>
70      &nbsp;&nbsp;&nbsp;&nbsp;close: whether figure should be closed or not<BR>
71    </DIV>
72    <DIV CLASS="valins">
73    $ python ${pyHOME}/drawing.py -o draw_multiWindRose -f 'sounding_uava_87418.nc@pres|1,1401,1;time|<BR>
74    &nbsp;&nbsp;33@ua,va#UBA_ERA-I_1a_snd_mendoza.nc@pres|-1;time|0@ua,va#UBA_ERA5_1a_snd_mendoza.nc@pres|-1;<BR>
75    &nbsp;&nbsp;time|0@ua,va#UBA_morrison_MYNN_snd_mendoza.nc@pres|-1;time|0@ua,va#SMN_snd_mendoza.nc@pres|-1;<BR>
76    &nbsp;&nbsp;time|0@ua,va#UBA_ERA-I_smnphys_snd_mendoza.nc@pres|-1;time|0@ua,va' -S 'linepoint;multicol;<BR>
77    &nbsp;&nbsp;pres;-;x@+@>@s@*@<;1@10@10@10@10@10;spectral;auto:obs,1a,era5_1a,sens,SMN,smnphys:WindRose!<BR>
78    &nbsp;&nbsp;obs!,!sim!comparison!at!87418!on!2015!Nov!18!00!UTC:png:auto:True'
79    </DIV>
80  </BODY>
81</HTML>
82
Note: See TracBrowser for help on using the repository browser.