source: lmdz_wrf/trunk/tools/documentation/plotting/basins.html @ 1531

Last change on this file since 1531 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: 2.6 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      plot basins
11    </DIV>
12    <DIV CLASS="valimg">
13      Plotting river basins with their discharge vector and basins id (from 'routing.nc' - ORCHIDEE routing output)
14      <IMG WIDTH="100%" SRC="figs/basins_named.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17    draw_basins(ncfile, values)<BR>
18    &nbsp;&nbsp;values= [lonlatbox]:[mapres]:[colorbarvals]:[xtrmbasin]:[mapdraw]:[veclength]:[plotcountry]:[basinidn]:<BR>
19    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[gtit]:[kindfig]:[figuren]<BR>
20    &nbsp;&nbsp;&nbsp;&nbsp;[lonlatbox]= [lonSW],[lonNE],[latSW],[latNE] coordinates of the lon/lat box<BR>
21    &nbsp;&nbsp;&nbsp;&nbsp;[mapres]= resolution of the mapping information to lon/lat<BR>
22    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'c': cure<BR>
23    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'l': low<BR>
24    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'i': intermediate<BR>
25    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'h': high<BR>
26    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'f': full<BR>
27    &nbsp;&nbsp;&nbsp;&nbsp;[colorbarvals] = [cbarname],[fmtcolorbar],[orientation]<BR>
28    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[cbarname]: colorbar name for the colors<BR>
29    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[fmtcolorbar]: format of the numbers in the color bar 'C'-like ('auto' for %6g)<BR>
30    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[orientation]: orientation of the colorbar ('vertical' (default, by 'auto', 'horizontal')<BR>
31    &nbsp;&nbsp;&nbsp;&nbsp;[xtrmbasin]= [minbasin],[maxbasin] minimum and maximum basin numbers to define color range<BR>
32    &nbsp;&nbsp;&nbsp;&nbsp;[mapdraw]= whether to draw the map (and project the data) or not ('True/False')<BR>
33    &nbsp;&nbsp;&nbsp;&nbsp;[plotcountry]= whether country lines should be plotted or not ('True/False')<BR>
34    &nbsp;&nbsp;&nbsp;&nbsp;[plotbasinid]= whether id of the basins should be plotted or not ('True/False')<BR>
35    &nbsp;&nbsp;&nbsp;&nbsp;[gtit]= title of the graph ('|', for spaces)<BR>
36    &nbsp;&nbsp;&nbsp;&nbsp;[kindfig]= kind of figure<BR>
37    &nbsp;&nbsp;&nbsp;&nbsp;[figuren]= name of the figure<BR>
38    &nbsp;&nbsp;&nbsp;&nbsp;[closefig]= whether figure should be closed or not<BR>
39    &nbsp;&nbsp;ncfile= file to use<BR>
40    </DIV>
41    <DIV CLASS="valins">
42      $ python ${pyHOME}/drawing.py -o draw_basins -f routing.nc -S '-5,5,42.,52.:l:rainbow,auto,auto:1,1000:True:True:True:ORCDHIEE|river-basins:png:basins_named:True' -v nav_lon,nav_lat,trip,basins
43    </DIV>
44  </BODY>
45</HTML>
46
Note: See TracBrowser for help on using the repository browser.