source: lmdz_wrf/trunk/tools/documentation/plotting/topofix_geogrid_boxes.html @ 2736

Last change on this file since 2736 was 2700, checked in by lfita, 5 years ago

Adding documentation for 'topofix_geogrid_boxes'

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      draw topofix geogrid boxes
11    </DIV>
12    <DIV CLASS="valimg">
13      plotting different geo_em.d[nn].nc topography from WPS files on a fixed low-level enhanced color mode
14      <IMG WIDTH="100%" SRC="figs/plot_topofix_geogrid.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17    draw_topofix_geogrid_boxes(ncfiles, values)
18    """ plotting different geo_em.d[nn].nc topography from WPS files<BR>
19    draw_topo_geogrid_boxes(ncfiles, values) on a fixed low-level enhanced color mode<BR>
20    &nbsp;&nbsp;ncfiles= ',' list of geo_em.d[nn].nc files to use (first as topographyc <BR>
21    &nbsp;&nbsp;&nbsp;&nbsp;reference)<BR>
22    &nbsp;&nbsp;values= [lonlatL]:[title]:[graphic_kind]:[mapvalues]:[labels]:[legvals]:<BR>
23    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[boxlvals]:[ColorLeg]:[mervals]:[parvals]:[coastlvals]:[countrylvals]:<BR>
24    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[stslvals]:[close]<BR>
25    &nbsp;&nbsp;&nbsp;&nbsp;lonlatL: limits of longitudes and latitudes [lonmin, latmin, lonmax, latmax] <BR>
26    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or None<BR>
27    &nbsp;&nbsp;&nbsp;&nbsp;title: title of the graph ('!' for spaces)<BR>
28    &nbsp;&nbsp;&nbsp;&nbsp;graphic_kind: kind of figure (jpg, pdf, png)<BR>
29    &nbsp;&nbsp;&nbsp;&nbsp;mapvalues: map characteristics [proj],[res]<BR>
30    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;see full documentation: http://matplotlib.org/basemap/<BR>
31    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[proj]: projection<BR>
32    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'cyl', cilindric<BR>
33    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'lcc', lambert conformal<BR>
34    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[res]: resolution:<BR>
35    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'c', crude<BR>
36    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'l', low<BR>
37    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'i', intermediate<BR>
38    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'h', high<BR>
39    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'f', full<BR>
40    &nbsp;&nbsp;&nbsp;&nbsp;legvals: [locleg]|[fontsize]|[Ncol]: <BR>
41    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[locleg]: location of the legend (0, automatic)<BR>
42    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR>
43    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR>
44    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9: 'upper center', 10: 'center'<BR>
45    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[fontsize]: font size for the legend (auto for 12)<BR>
46    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Ncol]: number of columns (1)<BR>
47    &nbsp;&nbsp;&nbsp;&nbsp;labels: labels to write in the graph ('!' for spaces)<BR>
48    &nbsp;&nbsp;&nbsp;&nbsp;boxlvals: [line style]|[line width] values for the boxes (['-', 3], auto)<BR>
49    &nbsp;&nbsp;&nbsp;&nbsp;ColorLeg: [ijstart, orientation, labsize, sqsize, labrotation, <BR>
50    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;totboxlength, ibox, seacolor] values for the legend of colors of the <BR>
51    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;topography ([0.95, 'vertical', 10., 10., 0., 0.8, 0.85, '#CCCCFF'], default)<BR>
52    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ijstart: initial position as fraction of figure on the oposite axis of <BR>
53    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;orientation<BR>
54    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;orientation: orientation of the legend<BR>
55    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labsize: font size of the labels<BR>
56    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sqsize: size of the squares of the legend<BR>
57    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labrotation: rotation of the labels of the legend<BR>
58    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;totboxlength: total length of the color legend as percentage of the figure <BR>
59    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size along the given orientation<BR>
60    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ibox: starting at the given orientation as percentage of the figure<BR>
61    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;seacolor: color for the sea<BR>
62    &nbsp;&nbsp;&nbsp;&nbsp;mervals: [fontsize]|[color line]|[labels rotation]|[line width] values for <BR>
63    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the meridians  ([8,'#AAAAAA', 0, 0.5], auto)<BR>
64    &nbsp;&nbsp;&nbsp;&nbsp;parvals: [fontsize]|[color line]|[labels rotation]|[line width] values for <BR>
65    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the parallels ([8,'#AAAAAA', 0, 0.5], auto)<BR>
66    &nbsp;&nbsp;&nbsp;&nbsp;coastlvals: [line width|color line] values for the coastline (None for any, <BR>
67    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[0.25,'#161616'], auto)<BR>
68    &nbsp;&nbsp;&nbsp;&nbsp;countrylvals: [line width|color line] values for the countries (None for any,<BR>
69    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[0.25, '#161616'], auto)<BR>
70    &nbsp;&nbsp;&nbsp;&nbsp;stslvals: [line width|color line] values for the states (None for any, None,<BR>
71    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[0.25, '#080808'], auto) <BR>
72    &nbsp;&nbsp;&nbsp;&nbsp;close: Whether figure should be finished or not<BR>
73    </DIV>
74    <DIV CLASS="valins">
75      $ python ${pyHOME}/drawing.py -o draw_topofix_geogrid_boxes -f geo_em.d01.nc,geo_em.d02.nc -S 'None:RELAMPAGO!explicit!convection!configuration:pdf:cyl,i:d01$_{8k}$,d02$_{1.6k}$:0|10|1:auto:0.17|horizontal|8|10|-45.|0.8|0.15|#CCCCFF:auto:auto:auto:auto:auto:True'
76    </DIV>
77  </BODY>
78</HTML>
79
Note: See TracBrowser for help on using the repository browser.