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 | stations_map |
---|
11 | </DIV> |
---|
12 | <DIV CLASS="valimg"> |
---|
13 | Plotting a map with locations of stations |
---|
14 | <IMG WIDTH="100%" SRC="figs/stations_map.png"></IMG> |
---|
15 | </DIV> |
---|
16 | <DIV CLASS="valhelp"> |
---|
17 | draw_stations_map(filename, values)<BR> |
---|
18 | Function to plot a map with the stations<BR> |
---|
19 | filename= name of ASCII file with the values of the stations as: ('#' comments)<BR> |
---|
20 | [sttype],[label],[lon],[lat],[height]<BR> |
---|
21 | [sttype]: type of the station<BR> |
---|
22 | [label]: label of the station (LaTeX format, 'None' for no label)<BR> |
---|
23 | [lon]: longitude of the station<BR> |
---|
24 | [lat]: latitude of the station<BR> |
---|
25 | [height]: height of the station<BR> |
---|
26 | values=[stypevals]:[mapvals]:[SWNEbox]:[imgtit]:[imgkind]:[close]<BR> |
---|
27 | stypevals='@' separated list of [sttype]|[marker]|[color]|[size]|[fontsize]<BR> |
---|
28 | [sttype]: label of the type of the marker<BR> |
---|
29 | [marker]: type of the marker<BR> |
---|
30 | [color]: color of the marker<BR> |
---|
31 | [size]: size of the marker<BR> |
---|
32 | mapvals= map characteristics: [proj],[res]<BR> |
---|
33 | see full documentation: http://matplotlib.org/basemap/<BR> |
---|
34 | [proj]: projection<BR> |
---|
35 | * 'cyl', cilindric<BR> |
---|
36 | * 'lcc', lambert-conformal<BR> |
---|
37 | [res]: resolution:<BR> |
---|
38 | * 'c', crude<BR> |
---|
39 | * 'l', low<BR> |
---|
40 | * 'i', intermediate<BR> |
---|
41 | * 'h', high<BR> |
---|
42 | * 'f', full<BR> |
---|
43 | SWNEbox: ',' list of the vertexs of the map [SWlon, NElon, SWlat, NElat]<BR> |
---|
44 | 'lonlatxtrms': to use the extremes of the lon,lat stations<BR> |
---|
45 | imgtit: title of the image ('!' for spaces)<BR> |
---|
46 | imgkind: kind of file output of the image (ps, pns, pdf, ...)<BR> |
---|
47 | close: whether figure should be closed or not<BR> |
---|
48 | </DIV> |
---|
49 | <DIV CLASS="valins"> |
---|
50 | $ python ${pyHOME}/drawing.py -o draw_stations_map -f stations.inf -S 'snd|x|#FFAAAA|2|8@sfc|<BR> |
---|
51 | x|#AAFFAA|2|8:cyl,f:lonlatxtrms:FPS!Alps!stations:png:true' |
---|
52 | </DIV> |
---|
53 | </BODY> |
---|
54 | </HTML> |
---|
55 | |
---|