source: lmdz_wrf/trunk/tools/documentation/plotting/subbasin.html @ 1559

Last change on this file since 1559 was 1541, checked in by lfita, 8 years ago

Fixing plot in documentation

File size: 3.4 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      subbasins
11    </DIV>
12    <DIV CLASS="valimg">
13      Plotting subbasin from a given point of its discharge from 'routing.nc' ORCDHIEE file. Each river is composed of different subbasins. Grouped up-flow. This function use a different color for the first level of suubbasins, and a different degree of color for the sub-subbasins of the first level. It takes output from `subbasin' function from 'nc_var.py'
14      <IMG WIDTH="100%" SRC="figs/Caceres_subbasin.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17      draw_subbasin(ncfile, values)<BR>
18      &nbsp;&nbsp;ncfile= file to use produced with nc_var.py#subbasin function<BR>
19      &nbsp;&nbsp;values= [subasiname]:[rangecolors]:[mapv]:[basinlinewidth]:[drawsubid]:[gtit]:[figkind]:[legvals]:[figurename]:<BR>
20      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[drawrivers]:[closefig]<BR>
21      &nbsp;&nbsp;&nbsp;&nbsp;[subasiname]= name of the subbasin ('!' for spaces)<BR>
22      &nbsp;&nbsp;&nbsp;&nbsp;[rcolor]= '@', list of 'r|g|b' 1-based colors (as much as first level sub-flow). 'None' for automatic<BR>
23      &nbsp;&nbsp;&nbsp;&nbsp;[mapv]= map characteristics: [proj],[res]<BR>
24      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;see full documentation: http://matplotlib.org/basemap/<BR>
25      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[proj]: projection<BR>
26      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'cyl', cilindric<BR>
27      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'lcc', lambert conformal<BR>
28      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[res]: resolution:<BR>
29      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'c', crude<BR>
30      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'l', low<BR>
31      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'i', intermediate<BR>
32      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'h', high<BR>
33      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'f', full<BR>
34      &nbsp;&nbsp;&nbsp;&nbsp;[basinlinewidth]= with of the line to draw the basin<BR>
35      &nbsp;&nbsp;&nbsp;&nbsp;[drawsubid]= wehther sub-flow ids should be plot or not<BR>
36      &nbsp;&nbsp;&nbsp;&nbsp;[graphtit]= title of the graph ('|', for spaces)<BR>
37      &nbsp;&nbsp;&nbsp;&nbsp;[legvals]=[locleg]|[fontsize]: <BR>
38      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[locleg]: location of the legend (0, autmoatic)<BR>
39      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR>
40      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR>
41      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9: 'upper center', 10: 'center'<BR>
42      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[fontsize]: font size for the legend (auto for 12)<BR>
43      &nbsp;&nbsp;&nbsp;&nbsp;[figname]= name of the figure<BR>
44      &nbsp;&nbsp;&nbsp;&nbsp;[drawrivers]= whether rivers from pythons' data-based have to be added or not<BR>
45      &nbsp;&nbsp;&nbsp;&nbsp;[closefig]= whether figures should be closed or not<BR>
46    </DIV>
47    <DIV CLASS="valins">
48      python ${pyHOME}/drawing.py -o draw_subbasin -f Caceres_subbasin.nc -S 'Caceres:None:cyl,l:2:True:Parana!subbasins!from!C&aacute;ceres:png:0:Caceres_subbasin:True:True'
49    </DIV>
50  </BODY>
51</HTML>
52
Note: See TracBrowser for help on using the repository browser.