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

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

Adding:

`draw_basins': Function to plot river basins with their discharge vector and basins id (from 'routing.nc')
`draw_river_desc': Function to plot rivers' description from ORCHIDEE's routing scheme
`draw_subbasin': Function to plot subbasin from 'routnig.nc' ORCDHIEE
`vectors': Function to plot wind vectors

Improving: `vectors'

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