[1465] | 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 | point Z value |
---|
| 11 | </DIV> |
---|
| 12 | <DIV CLASS="valimg"> |
---|
| 13 | Plotting points by their Z value according to a colorbar |
---|
| 14 | <IMG WIDTH="100%" SRC="figs/pointsZval.png"></IMG> |
---|
| 15 | </DIV> |
---|
| 16 | <DIV CLASS="valhelp"> |
---|
| 17 | draw_ptZvals(ncfile, values, variable)<BR> |
---|
| 18 | ncfile= netCDF file to use<BR> |
---|
| 19 | values= [fvname]:[XYvar]:[dimxyfmt]:[pointype]:[pointsize]:[graphlimits]:[nxtype]:<BR> |
---|
| 20 | [legend]:[figuretitle]:[cbarv]:[mapvalue]:[kindfig]:[figclose]<BR> |
---|
| 21 | [fvname]: name of the variable in the graph<BR> |
---|
| 22 | [XYvar]: [x],[y] variable names<BR> |
---|
| 23 | [dimxyfmt]=[dxs],[dxf],[Ndx],[ordx],[dys],[dyf],[Ndy],[ordy]: format of the values at each axis ('auto', for <BR> |
---|
| 24 | 'pretty' at both axes)<BR> |
---|
| 25 | [dxs]: style of x-axis ('auto' for 'pretty')<BR> |
---|
| 26 | 'Nfix', values computed at even 'Ndx'<BR> |
---|
| 27 | 'Vfix', values computed at even 'Ndx' increments<BR> |
---|
| 28 | 'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals 2.,2.5,4,5,10)<BR> |
---|
| 29 | [dxf]: format of the labels at the x-axis<BR> |
---|
| 30 | [Ndx]: Number of ticks at the x-axis<BR> |
---|
| 31 | [ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)<BR> |
---|
| 32 | [dys]: style of y-axis ('auto' for 'pretty')<BR> |
---|
| 33 | [dyf]: format of the labels at the y-axis<BR> |
---|
| 34 | [Ndy]: Number of ticks at the y-axis<BR> |
---|
| 35 | [ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)<BR> |
---|
| 36 | [ptype]: type of the point<BR> |
---|
| 37 | [ptsize]: size of the point<BR> |
---|
| 38 | [graphlimits]: minX,minY,maxX,maxY limits of the graph 'None' for the full size<BR> |
---|
| 39 | [nxtype]: minimum and maximum type<BR> |
---|
| 40 | 'auto': values taken from the extrems of the data<BR> |
---|
| 41 | [min],[max]: given minimum and maximum values<BR> |
---|
| 42 | [legend]: kind of legend<BR> |
---|
| 43 | 'None': no legend<BR> |
---|
| 44 | 'ptlabel',[varlabels],[fontsize],[xoffset],[yoffset]: label at the side of the point<BR> |
---|
| 45 | [varlabels]: variable in file with the labels for the points<BR> |
---|
| 46 | [fontsize]: font-size of the label<BR> |
---|
| 47 | [xoffset]: x-offset of the label respect the point in pixels<BR> |
---|
| 48 | [yoffset]: y-offset of the label respect the point in pixels<BR> |
---|
| 49 | 'legend',[varlabels],[location],[fontsize]: standard legend<BR> |
---|
| 50 | [varlabels]: variable in file with the labels for the points<BR> |
---|
| 51 | [location]: location of the legend ('0', for automatic)<BR> |
---|
| 52 | 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR> |
---|
| 53 | 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR> |
---|
| 54 | 9: 'upper center', 10: 'center'<BR> |
---|
| 55 | [fontsize]: size of the font for the legend ('auto' for 12)<BR> |
---|
| 56 | [figtitle]: title of the figure ('!' for spaces)<BR> |
---|
| 57 | [colorbarv]: list with the parameters of the color bar [colorbar, cbarfmt, cbaror]<BR> |
---|
| 58 | colorbar= name of the color bar to use<BR> |
---|
| 59 | cbarfmt= format of the numbers in the colorbar ('auto' for %6g)<BR> |
---|
| 60 | cbaror= orientation of the colorbar ('auto' for vertical)<BR> |
---|
| 61 | [mapv]: map characteristics: [proj],[res]<BR> |
---|
| 62 | see full documentation: <A HREF="http://matplotlib.org/basemap" TARGET="_blank" CLASS="lc">http://matplotlib.org/basemap/</A><BR> |
---|
| 63 | [proj]: projection<BR> |
---|
| 64 | * 'cyl', cilindric<BR> |
---|
| 65 | * 'lcc', lambert-conformal<BR> |
---|
| 66 | [res]: resolution:<BR> |
---|
| 67 | * 'c', crude<BR> |
---|
| 68 | * 'l', low<BR> |
---|
| 69 | * 'i', intermediate<BR> |
---|
| 70 | * 'h', high<BR> |
---|
| 71 | * 'f', full<BR> |
---|
| 72 | [kfig]: kind of figure<BR> |
---|
| 73 | [closefig]: boolean value whether figure should be close (finish) or not<BR> |
---|
| 74 | variable= name of the variable to plot<BR> |
---|
| 75 | </DIV> |
---|
| 76 | <DIV CLASS="valins"> |
---|
| 77 | $ python ${pyHOME}/drawing.py -o draw_ptZvals -f MountainPeaks.nc -S 'height:lon,lat:auto:x:5.:-180.,-90.,180.,90.:0,9000.:ptlabel,name,8,0,4:Mountain!peaks:rainbow,auto,auto:cyl,l:png:yes' -v height<BR> |
---|
| 78 | `MountainPeaks.nc' File generated with <A HREF="create_TopoValues.py" TAREGET="_blank" CLASS="lc">create_TopoValues.py</A> |
---|
| 79 | </DIV> |
---|
| 80 | </BODY> |
---|
| 81 | </HTML> |
---|
| 82 | |
---|