source: lmdz_wrf/trunk/tools/documentation/plotting/barbs.html @ 2734

Last change on this file since 2734 was 1403, checked in by lfita, 8 years ago

Fixing issues and introducing $pyHOME

File size: 5.6 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      barbs
11    </DIV>
12    <DIV CLASS="valimg">
13      Plotting a vectorial field using the meteorological <A CLASS="lc" HREF="http://glossary.ametsoc.org/wiki/Barb" TARGET="_blank">wind-barbs</A> specification
14      <IMG WIDTH="50%" SRC="figs/wind_barbs_2001111003_wss.png"></IMG>
15      <IMG WIDTH="50%" SRC="figs/wind_barbs_2001111003_uw.png"></IMG>
16    </DIV>
17    <DIV CLASS="valhelp">
18      draw_barbs(ncfile, values, varns)<BR>
19      values= [dimname]|[vardimname]|[value]:[vecvals]:[windlabs]:[dimxv]:[dimyv]:[mapvalues]:[dimxyfmt]:<BR>
20      &nbsp;&nbsp;[transform]:[gtit]:[kindfig]:[figuren]:[close]<BR>
21      &nbsp;&nbsp;[dimname]|[vardimname]|[value]: ',', list for each basic dimension '|' separated of:<BR>
22      &nbsp;&nbsp;&nbsp;&nbsp;[dimname]: name of the dimension in the file<BR>
23      &nbsp;&nbsp;&nbsp;&nbsp;[vardimname]: name of the variable with the values for the dimension in the file<BR>
24      &nbsp;&nbsp;&nbsp;&nbsp;[value]: which value of the given dimension (-1, all; [ibeg]@[iend], i-range beginning, end)<BR>
25      &nbsp;&nbsp;&nbsp;&nbsp;No value takes all the range of the dimension<BR>
26      &nbsp;&nbsp;[vecvals]= [frequency],[color],[length]<BR>
27      &nbsp;&nbsp;&nbsp;&nbsp;[frequency]: [xfreq]@[yfreq] frequency of values allong each axis ('None', all grid points;<BR> 
28      &nbsp;&nbsp;&nbsp;&nbsp;'auto', computed automatically to have 20 vectors along each axis)<BR>
29      &nbsp;&nbsp;&nbsp;&nbsp;[color]: color of the vectors ('auto', for 'red') two options:<BR>
30      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[colorname]: name of the color fixed for all vectors<BR>
31      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'colormap'@[colormapname]: use colormap to provide the colors tacking wind speed as reference
32      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[length]: length of the wind barbs ('auto', for 9)<BR>
33      &nbsp;&nbsp;[windlabs]= [windname],[windunits]<BR>
34      &nbsp;&nbsp;&nbsp;&nbsp;[windname]: name of the wind variable in the graph<BR>
35      &nbsp;&nbsp;&nbsp;&nbsp;[windunits]: units of the wind variable in the graph ('None', for the value in the file)<BR>
36      &nbsp;&nbsp;[dimxvn]: Variables with the final values for the x dimension<BR>
37      &nbsp;&nbsp;[dimyvn]: Variables with the final values for the y dimension<BR>
38      &nbsp;&nbsp;[mapvalues]= map characteristics: [proj],[res]<BR>
39      &nbsp;&nbsp;&nbsp;&nbsp;see full documentation: <URL CLASS="lc" HREF="http://matplotlib.org/basemap/" TARGET="_blank" >http://matplotlib.org/basemap/</A><BR>
40      &nbsp;&nbsp;&nbsp;&nbsp;[proj]: projection<BR>
41      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'cyl', cilindric<BR>
42      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'lcc', lambert conformal<BR>
43      &nbsp;&nbsp;&nbsp;&nbsp;[res]: resolution:<BR>
44      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'c', crude<BR>
45      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'l', low<BR>
46      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'i', intermediate<BR>
47      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'h', high<BR>
48      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'f', full<BR>
49      &nbsp;&nbsp;[dimxyfmt]=[dxs],[dxf],[Ndx],[ordx],[dys],[dyf],[Ndy],[ordx]: format of the values at each axis (or 'auto')<BR>
50      &nbsp;&nbsp;&nbsp;&nbsp;[dxs]: style of x-axis ('auto' for 'pretty')<BR>
51      &nbsp;&nbsp;&nbsp;&nbsp;'Nfix', values computed at even 'Ndx'<BR>
52      &nbsp;&nbsp;&nbsp;&nbsp;'Vfix', values computed at even 'Ndx' increments<BR>
53      &nbsp;&nbsp;&nbsp;&nbsp;'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals (2.,2.5,4,5,10)<BR>
54      &nbsp;&nbsp;&nbsp;&nbsp;[dxf]: format of the labels at the x-axis ('auto' for '%5g')<BR>
55      &nbsp;&nbsp;&nbsp;&nbsp;[Ndx]: Number of ticks at the x-axis ('auto' for 5)<BR>
56      &nbsp;&nbsp;&nbsp;&nbsp;[ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)<BR>
57      &nbsp;&nbsp;&nbsp;&nbsp;[dys]: style of y-axis ('auto' for 'pretty')<BR>
58      &nbsp;&nbsp;&nbsp;&nbsp;[dyf]: format of the labels at the y-axis ('auto' for '%5g')<BR>
59      &nbsp;&nbsp;&nbsp;&nbsp;[Ndy]: Number of ticks at the y-axis ('auto' for 5)<BR>
60      &nbsp;&nbsp;&nbsp;&nbsp;[ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)<BR>
61      &nbsp;&nbsp;[transform]: Transformation of the values<BR>
62      &nbsp;&nbsp;&nbsp;&nbsp;* 'transpose': reverse the axes (x-->y, y-->x)<BR>
63      &nbsp;&nbsp;&nbsp;&nbsp;* 'flip'@[x/y]: flip the axis x or y<BR>
64      &nbsp;&nbsp;[gtit]= title of the graph ('|', for spaces)<BR>
65      &nbsp;&nbsp;[kindfig]= kind of figure<BR>
66      &nbsp;&nbsp;[figuren]= name of the figure<BR>
67      &nbsp;&nbsp;[close]= whether figure should be finished or not<BR>
68      ncfile= file to use<BR>
69      varns= [uwind],[ywind] ',' list of the name of the variables with the u-wind,y-wind component<BR>
70    </DIV>
71    <DIV CLASS="valins">
72       $ python ${pyHOME}/drawing.py -o draw_barbs -f wrfout_d01_2001-11-11_00:00:00 -S 'west_east|XLONG|-1,south_north|XLAT|-1,Time|WRFtime|3:10@5,r,7.:wss,ms-1:XLONG:XLAT:cyl,c:auto:None:surface|wind|speed|on|2001-11-10|03|UTC:png:wind_barbs_2001111003_wss:True' -v U10,V10<BR>
73       $ python ${pyHOME}/drawing.py -o draw_barbs -f wrfout_d01_2001-11-11_00:00:00 -S 'west_east|XLONG|-1,west_east_stag|XLONG|0@239@1,south_north|XLAT|15,bottom_top|ZNU|-1,bottom_top_stag|ZNW|0@39@1,Time|WRFtime|3:10@2,colormap@rainbow,7.:uw,ms-1:XLONG:ZNW:None:auto:flip@y:vertical|cross|section|wind|speed|at|y=15|on|2001-11-10|03|UTC:png:wind_barbs_2001111003_uw:True' -v U,W
74    </DIV>
75  </BODY>
76</HTML>
77
Note: See TracBrowser for help on using the repository browser.