[1246] | 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"> |
---|
[1257] | 13 | Plotting a vectorial field using the meteorological <A CLASS="lc" HREF="http://glossary.ametsoc.org/wiki/Barb" TARGET="_blank">wind-barbs</A> specification |
---|
[1246] | 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> |
---|
[1403] | 20 | [transform]:[gtit]:[kindfig]:[figuren]:[close]<BR> |
---|
[1246] | 21 | [dimname]|[vardimname]|[value]: ',', list for each basic dimension '|' separated of:<BR> |
---|
| 22 | [dimname]: name of the dimension in the file<BR> |
---|
| 23 | [vardimname]: name of the variable with the values for the dimension in the file<BR> |
---|
| 24 | [value]: which value of the given dimension (-1, all; [ibeg]@[iend], i-range beginning, end)<BR> |
---|
| 25 | No value takes all the range of the dimension<BR> |
---|
| 26 | [vecvals]= [frequency],[color],[length]<BR> |
---|
| 27 | [frequency]: [xfreq]@[yfreq] frequency of values allong each axis ('None', all grid points;<BR> |
---|
| 28 | 'auto', computed automatically to have 20 vectors along each axis)<BR> |
---|
| 29 | [color]: color of the vectors ('auto', for 'red') two options:<BR> |
---|
| 30 | [colorname]: name of the color fixed for all vectors<BR> |
---|
| 31 | 'colormap'@[colormapname]: use colormap to provide the colors tacking wind speed as reference |
---|
| 32 | [length]: length of the wind barbs ('auto', for 9)<BR> |
---|
| 33 | [windlabs]= [windname],[windunits]<BR> |
---|
| 34 | [windname]: name of the wind variable in the graph<BR> |
---|
| 35 | [windunits]: units of the wind variable in the graph ('None', for the value in the file)<BR> |
---|
| 36 | [dimxvn]: Variables with the final values for the x dimension<BR> |
---|
| 37 | [dimyvn]: Variables with the final values for the y dimension<BR> |
---|
| 38 | [mapvalues]= map characteristics: [proj],[res]<BR> |
---|
| 39 | see full documentation: <URL CLASS="lc" HREF="http://matplotlib.org/basemap/" TARGET="_blank" >http://matplotlib.org/basemap/</A><BR> |
---|
| 40 | [proj]: projection<BR> |
---|
| 41 | * 'cyl', cilindric<BR> |
---|
| 42 | * 'lcc', lambert conformal<BR> |
---|
| 43 | [res]: resolution:<BR> |
---|
| 44 | * 'c', crude<BR> |
---|
| 45 | * 'l', low<BR> |
---|
| 46 | * 'i', intermediate<BR> |
---|
| 47 | * 'h', high<BR> |
---|
| 48 | * 'f', full<BR> |
---|
| 49 | [dimxyfmt]=[dxs],[dxf],[Ndx],[ordx],[dys],[dyf],[Ndy],[ordx]: format of the values at each axis (or 'auto')<BR> |
---|
| 50 | [dxs]: style of x-axis ('auto' for 'pretty')<BR> |
---|
| 51 | 'Nfix', values computed at even 'Ndx'<BR> |
---|
| 52 | 'Vfix', values computed at even 'Ndx' increments<BR> |
---|
| 53 | 'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals (2.,2.5,4,5,10)<BR> |
---|
| 54 | [dxf]: format of the labels at the x-axis ('auto' for '%5g')<BR> |
---|
| 55 | [Ndx]: Number of ticks at the x-axis ('auto' for 5)<BR> |
---|
| 56 | [ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)<BR> |
---|
| 57 | [dys]: style of y-axis ('auto' for 'pretty')<BR> |
---|
| 58 | [dyf]: format of the labels at the y-axis ('auto' for '%5g')<BR> |
---|
| 59 | [Ndy]: Number of ticks at the y-axis ('auto' for 5)<BR> |
---|
| 60 | [ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)<BR> |
---|
[1403] | 61 | [transform]: Transformation of the values<BR> |
---|
[1246] | 62 | * 'transpose': reverse the axes (x-->y, y-->x)<BR> |
---|
| 63 | * 'flip'@[x/y]: flip the axis x or y<BR> |
---|
| 64 | [gtit]= title of the graph ('|', for spaces)<BR> |
---|
| 65 | [kindfig]= kind of figure<BR> |
---|
| 66 | [figuren]= name of the figure<BR> |
---|
| 67 | [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"> |
---|
[1403] | 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 |
---|
[1246] | 74 | </DIV> |
---|
| 75 | </BODY> |
---|
| 76 | </HTML> |
---|
| 77 | |
---|