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 | values= [dimname]|[vardimname]|[value]:[basinvals]:[upstreamvals]:[mapvalues]:<BR> |
---|
19 | [gtit]:[kindfig]:[legvals]:[figuren]:[closefig]<BR> |
---|
20 | 'X/Y'|[dimname]|[vardimname]|[value]: ',', list for each basic dimension '|' separated of:<BR> |
---|
21 | [dimname]= name of the dimension in the file for 'X' and 'Y' axis<BR> |
---|
22 | [vardimname]: name of the variable with the values for the dimension in the file<BR> |
---|
23 | [value]: which value of the given dimension is required:<BR> |
---|
24 | * [integer]: which value of the dimension<BR> |
---|
25 | * -1: all along the dimension<BR> |
---|
26 | * -9: last value of the dimension<BR> |
---|
27 | * [beg]:[end] slice from [beg] to [end]<BR> |
---|
28 | * NOTE, no dim name all the dimension size<BR> |
---|
29 | No value takes all the range of the dimension<BR> |
---|
30 | [basinsvals]= [colorline] colors for the border line of each basin<BR> |
---|
31 | [basincolor]: ',' list of colors of the line to use to mark the basins contours (single value also possible)<BR> |
---|
32 | [upstreamcolor]: colorbar to use to plot the basins upstream values<BR> |
---|
33 | [mapvalues]= map characteristics: [proj],[res]<BR> |
---|
34 | see full documentation: http://matplotlib.org/basemap/<BR> |
---|
35 | [proj]: projection<BR> |
---|
36 | * 'cyl', cilindric<BR> |
---|
37 | * 'lcc', lambert conformal<BR> |
---|
38 | [res]: resolution:<BR> |
---|
39 | * 'c', crude<BR> |
---|
40 | * 'l', low<BR> |
---|
41 | * 'i', intermediate<BR> |
---|
42 | * 'h', high<BR> |
---|
43 | * 'f', full<BR> |
---|
44 | [gtit]= title of the graph ('|', for spaces)<BR> |
---|
45 | [kindfig]= kind of figure (png, ps, pdf)<BR> |
---|
46 | [legvals]=[locleg]|[fontsize]: <BR> |
---|
47 | [locleg]: location of the legend (0, autmoatic)<BR> |
---|
48 | 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR> |
---|
49 | 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR> |
---|
50 | 9: 'upper center', 10: 'center'<BR> |
---|
51 | [fontsize]: font size for the legend (auto for 12)<BR> |
---|
52 | [figuren]= name of the figure<BR> |
---|
53 | [closefig]= whether figure should be closed or not<BR> |
---|
54 | ncfile= file to use<BR> |
---|
55 | 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 | |
---|