[1469] | 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 | Each river is composed of different subbasins. Grouped up-flow. This function use a different color <BR> |
---|
| 15 | for the first level of suubbasins, and a different degree of color for the sub-subbasins of the first level <BR> |
---|
| 16 | 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 | ncfile= file to use produced with nc_var.py#subbasin function<BR> |
---|
| 22 | values= [subasiname]:[rangecolors]:[mapv]:[basinlinewidth]:[drawsubid]:[gtit]:[figkind]:[legvals]:[figurename]:<BR> |
---|
| 23 | [drawrivers]:[closefig]<BR> |
---|
| 24 | [subasiname]= name of the subbasin ('!' for spaces)<BR> |
---|
| 25 | [rcolor]= '@', list of 'r|g|b' 1-based colors (as much as first level sub-flow). 'None' for automatic<BR> |
---|
| 26 | [mapv]= map characteristics: [proj],[res]<BR> |
---|
| 27 | see full documentation: http://matplotlib.org/basemap/<BR> |
---|
| 28 | [proj]: projection<BR> |
---|
| 29 | * 'cyl', cilindric<BR> |
---|
| 30 | * 'lcc', lambert conformal<BR> |
---|
| 31 | [res]: resolution:<BR> |
---|
| 32 | * 'c', crude<BR> |
---|
| 33 | * 'l', low<BR> |
---|
| 34 | * 'i', intermediate<BR> |
---|
| 35 | * 'h', high<BR> |
---|
| 36 | * 'f', full<BR> |
---|
| 37 | [basinlinewidth]= with of the line to draw the basin<BR> |
---|
| 38 | [drawsubid]= wehther sub-flow ids should be plot or not<BR> |
---|
| 39 | [graphtit]= title of the graph ('|', for spaces)<BR> |
---|
| 40 | [legvals]=[locleg]|[fontsize]: <BR> |
---|
| 41 | [locleg]: location of the legend (0, autmoatic)<BR> |
---|
| 42 | 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR> |
---|
| 43 | 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR> |
---|
| 44 | 9: 'upper center', 10: 'center'<BR> |
---|
| 45 | [fontsize]: font size for the legend (auto for 12)<BR> |
---|
| 46 | [figname]= name of the figure<BR> |
---|
| 47 | [drawrivers]= whether rivers from pythons' data-based have to be added or not<BR> |
---|
| 48 | [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àceres:png:0:Caceres_subbasin:True:True' |
---|
| 52 | </DIV> |
---|
| 53 | </BODY> |
---|
| 54 | </HTML> |
---|
| 55 | |
---|