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 | plot points |
---|
11 | </DIV> |
---|
12 | <DIV CLASS="valimg"> |
---|
13 | Plotting a series of lon, lat, labels kept in an ASCII file with the option to add a shaded field |
---|
14 | <IMG WIDTH="100%" SRC="figs/stations_loc.png"></IMG> |
---|
15 | </DIV> |
---|
16 | <DIV CLASS="valhelp"> |
---|
17 | Function to plot a series of points read from an ASCII file with lon, lat, label <BR> |
---|
18 | draw_points(filen, values)<BR> |
---|
19 | draw_points(filen, values)<BR> |
---|
20 | [values]= [ptasciifile]:[gtit]:[dimxyfmt]:[mapvalues]:[kindfigure]:[pointcolor]:[pointlabels]:<BR> |
---|
21 | [legvals]:[figureko]:[figuren]:[close]<BR> |
---|
22 | [ptasciifile]:[file],[comchar],[collon],[collat],[lab]<BR> |
---|
23 | [file]: column ASCII file with the location of the points<BR> |
---|
24 | [comchar]: '|' list of characters for commentaries<BR> |
---|
25 | [collon]: number of column with the longitude of the points<BR> |
---|
26 | [collat]: number of column with the latitude of the points<BR> |
---|
27 | [collab]: number of column with the labels of the points ('None', and will get<BR> |
---|
28 | the values from the [pointlabels] variable<BR> |
---|
29 | [gtit]: title of the figure ('|' for spaces)<BR> |
---|
30 | [dimxyfmt]: [dxs],[dxf],[Ndx],[ordx],[dys],[dyf],[Ndy],[ordx]: format of the values at each axis (or 'auto')<BR> |
---|
31 | [dxs]: style of x-axis ('auto' for 'pretty')<BR> |
---|
32 | 'Nfix', values computed at even 'Ndx'<BR> |
---|
33 | 'Vfix', values computed at even 'Ndx' increments<BR> |
---|
34 | 'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals (2.,2.5,4,5,10)<BR> |
---|
35 | [dxf]: format of the labels at the x-axis ('auto' for '%5g')<BR> |
---|
36 | [Ndx]: Number of ticks at the x-axis ('auto' for 5)<BR> |
---|
37 | [ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)<BR> |
---|
38 | [dys]: style of y-axis ('auto' for 'pretty')<BR> |
---|
39 | [dyf]: format of the labels at the y-axis ('auto' for '%5g')<BR> |
---|
40 | [Ndy]: Number of ticks at the y-axis ('auto' for 5)<BR> |
---|
41 | [ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)<BR> |
---|
42 | [mapvalues]: drawing coastaline ([proj],[res]) or None<BR> |
---|
43 | [proj]: projection<BR> |
---|
44 | * 'cyl', cilindric<BR> |
---|
45 | * 'lcc', lambert conformal<BR> |
---|
46 | [res]: resolution:<BR> |
---|
47 | * 'c', crude<BR> |
---|
48 | * 'l', low<BR> |
---|
49 | * 'i', intermediate<BR> |
---|
50 | * 'h', high<BR> |
---|
51 | * 'f', full<BR> |
---|
52 | [kindfigure]: kind of figure<BR> |
---|
53 | 'legend': only points in the map with the legend with the names<BR> |
---|
54 | 'labelled',[txtsize],[txtcol],[txtbckgcol]: points with the names and size, color of text and background <BR> |
---|
55 | color ('None' for without)<BR> |
---|
56 | [pointcolor]: color for the points ('auto' for "red")<BR> |
---|
57 | [pointlabels]: ',' of labels [only used if [collab]='None'] ('None' for no labels, '!' for spaces)<BR> |
---|
58 | [legvals]=[locleg]|[fontsize]: <BR> |
---|
59 | [locleg]: location of the legend (0, autmoatic)<BR> |
---|
60 | 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR> |
---|
61 | 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR> |
---|
62 | 9: 'upper center', 10: 'center'<BR> |
---|
63 | [fontsize]: font size for the legend (auto for 12)<BR> |
---|
64 | [figureko]: kind of the output file (pdf, png, ...)<BR> |
---|
65 | [figuren]: name of the figure<BR> |
---|
66 | [close]: Whether figure should be finished or not<BR> |
---|
67 | [filen]= [ncfile],[lonvarn],[latvarn][,[varn],[dimvals],[vargn],[min],[max],[colbarn],[fmtcolorbar],[orientation],[varu]]<BR> |
---|
68 | [ncfile]: netCDF to use to geolocalize the points<BR> |
---|
69 | [lonvarn]: name of the variable with the longitudes<BR> |
---|
70 | [latvarn]: name of the variable with the latitudes<BR> |
---|
71 | Optional values:<BR> |
---|
72 | [varn]: optional variable to add staff into the graph<BR> |
---|
73 | [dimval]: '@' list of [dimn]|[dimval] to get the values for [varn]<BR> |
---|
74 | [dimn]: name of the dimension<BR> |
---|
75 | [dimval]: value of the dimension variable a given value is required:<BR> |
---|
76 | * [integer]: which value of the dimension<BR> |
---|
77 | * -1: all along the dimension<BR> |
---|
78 | * -9: last value of the dimension<BR> |
---|
79 | * [beg];[end];[inc] slice from [beg] to [end] every [inc]<BR> |
---|
80 | * NOTE, no dim name all the dimension size<BR> |
---|
81 | [vargn]: name of the variable in the graph<BR> |
---|
82 | [min]: minimum value for the extra variable<BR> |
---|
83 | [max]: maximum value for the extra variable<BR> |
---|
84 | [colbarn]: name of the color bar<BR> |
---|
85 | [fmtcolorbar]: format of the numbers in the color bar 'C'-like ('auto' for %6g)<BR> |
---|
86 | [orientation]: orientation of the colorbar ('vertical' (default, by 'auto'), 'horizontal')<BR> |
---|
87 | [varu]: units of the variable<BR> |
---|
88 | </DIV> |
---|
89 | <DIV CLASS="valins"> |
---|
90 | $ python ${pyHOME}/drawing.py -o draw_points -S 'SuperStorm/tslist.dat,#,3,2,1:SuperStorm|sfc|stations:auto:cyl,i:labelled,10,r,None:auto:None:0|12:png:stations_loc:True' -f 'geo_em.d02.nc,XLONG_M,XLAT_M,HGT_M,Time|0@west_east|30;180;1@south_north|175;255;1,height,0.,1500.,terrain,auto,auto,m' |
---|
91 | </DIV> |
---|
92 | </BODY> |
---|
93 | </HTML> |
---|
94 | |
---|