source: lmdz_wrf/trunk/tools/documentation/plotting/river_desc.html

Last change on this file 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: 4.0 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      river description
11    </DIV>
12    <DIV CLASS="valimg">
13      Plotting rivers' description from ORCHIDEE's routing scheme file ('river_desc.nc')
14      <IMG WIDTH="100%" SRC="figs/or_rivers.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17    draw_river_desc(ncfile, values, riverns)<BR>
18    &nbsp;&nbsp;values= [dimname]|[vardimname]|[value]:[basinvals]:[upstreamvals]:[mapvalues]:<BR>
19    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[gtit]:[kindfig]:[legvals]:[figuren]:[closefig]<BR>
20    &nbsp;&nbsp;&nbsp;&nbsp;'X/Y'|[dimname]|[vardimname]|[value]: ',', list for each basic dimension '|' separated of:<BR>
21    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dimname]= name of the dimension in the file for 'X' and 'Y' axis<BR>
22    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[vardimname]: name of the variable with the values for the dimension in the file<BR>
23    &nbsp;&nbsp;&nbsp;&nbsp;[value]: which value of the given dimension is required:<BR>
24    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* [integer]: which value of the dimension<BR>
25    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* -1: all along the dimension<BR>
26    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* -9: last value of the dimension<BR>
27    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* [beg]:[end] slice from [beg] to [end]<BR>
28    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* NOTE, no dim name all the dimension size<BR>
29    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No value takes all the range of the dimension<BR>
30    &nbsp;&nbsp;&nbsp;&nbsp;[basinsvals]= [colorline] colors for the border line of each basin<BR>
31    &nbsp;&nbsp;&nbsp;&nbsp;[basincolor]: ',' list of colors of the line to use to mark the basins contours (single value also possible)<BR>
32    &nbsp;&nbsp;&nbsp;&nbsp;[upstreamcolor]: colorbar to use to plot the basins upstream values<BR>
33    &nbsp;&nbsp;&nbsp;&nbsp;[mapvalues]= map characteristics: [proj],[res]<BR>
34    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;see full documentation: http://matplotlib.org/basemap/<BR>
35    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[proj]: projection<BR>
36    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'cyl', cilindric<BR>
37    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'lcc', lambert conformal<BR>
38    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[res]: resolution:<BR>
39    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'c', crude<BR>
40    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'l', low<BR>
41    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'i', intermediate<BR>
42    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'h', high<BR>
43    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'f', full<BR>
44    &nbsp;&nbsp;&nbsp;&nbsp;[gtit]= title of the graph ('|', for spaces)<BR>
45    &nbsp;&nbsp;&nbsp;&nbsp;[kindfig]= kind of figure (png, ps, pdf)<BR>
46    &nbsp;&nbsp;&nbsp;&nbsp;[legvals]=[locleg]|[fontsize]: <BR>
47    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[locleg]: location of the legend (0, autmoatic)<BR>
48    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR>
49    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR>
50    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9: 'upper center', 10: 'center'<BR>
51    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[fontsize]: font size for the legend (auto for 12)<BR>
52    &nbsp;&nbsp;&nbsp;&nbsp;[figuren]= name of the figure<BR>
53    &nbsp;&nbsp;&nbsp;&nbsp;[closefig]= whether figure should be closed or not<BR>
54    &nbsp;&nbsp;ncfile= file to use<BR>
55    &nbsp;&nbsp;riverns= ',' list of the name of the rivers to plot<BR>
56    </DIV>
57    <DIV CLASS="valins">
58      $ python ${pyHOME}/drawing.py -o draw_2D_shad -f wrfout_d01_2001-11-11_00:00:00 -S 'tas:west_east|-1,south_north|-1,Time|2:XLONG:XLAT:auto:rainbow,auto,auto:Srange,Srange:tas|at|2001-11-11|02|UTC:png:None:cyl,l:True' -v T2
59    </DIV>
60  </BODY>
61</HTML>
62
Note: See TracBrowser for help on using the repository browser.