source: lmdz_wrf/trunk/tools/documentation/plotting/vals_trajectories.html @ 1553

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

Adding `draw_vals_trajectories'

File size: 5.7 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      Values along trajectories
11    </DIV>
12    <DIV CLASS="valimg">
13      Function to draw values from the outputs from 'compute_tevolboxtraj'. Different statistics of a given variable following a trajectory
14      <IMG WIDTH="100%" SRC="figs/val_trajectories_maxcircle_wss.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17      draw_vals_trajectories(ncfile, values, variable)<BR>
18      ncfile= [ncfile] ',' list of files to use<BR>
19      values= [statisticskind]:[sminv],[smaxv]:[Tint]:[labels]:[legvals]:[gvarname]:[timetit]:[tkind]:<BR>
20      &nbsp;&nbsp;&nbsp;&nbsp;[timefmt]:[title]:[gkind]:[colorlines]:[typelines]:[widthlines]:[pointtype]:[pointsizee]:[pointfreq]:[figclose]<BR>
21      &nbsp;&nbsp;[statisticskind]=[statistics][kind]<BR>
22      &nbsp;&nbsp;&nbsp;&nbsp;[statistics]: which statistics to use, from: 'center', 'min', 'max', 'mean', <BR>
23      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'mean2', 'stdev'<BR>
24      &nbsp;&nbsp;&nbsp;&nbsp;[kind]: 'box', 'circle' statistics taking the values from a box or a circle<BR>
25      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'trj': value following the trajectory<BR>
26      &nbsp;&nbsp;&nbsp;&nbsp;[sminv],[smaxv]: minimum and maximum value for the lines or one value for each extreme:<BR>
27      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Srange': for full range<BR>
28      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Saroundmean@val': for mean-xtrm,mean+xtrm where xtrm = np.min(mean-min@val,max@val-mean)<BR>
29      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Saroundminmax@val': for min*val,max*val<BR>
30      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Saroundpercentile@val': for median-xtrm,median+xtrm where xtrm = np.min(median-percentile_(val),<BR>
31      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;percentile_(100-val)-median)<BR>
32      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Smean@val': for -xtrm,xtrm where xtrm = np.min(mean-min*@val,max*@val-mean)<BR>
33      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Smedian@val': for -xtrm,xtrm where xtrm = np.min(median-min@val,max@val-median)<BR>
34      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),<BR>
35      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;percentile_(100-val)-median)<BR>
36      &nbsp;&nbsp;&nbsp;&nbsp;[Tint]: [Tbeg]@[Tend] or None, interval of time to plot or -1 for all the times<BR>
37      &nbsp;&nbsp;&nbsp;&nbsp;[leglabels]: ',' separated list of labels for the legend<BR>
38      &nbsp;&nbsp;&nbsp;&nbsp;[legvals]=[locleg]|[fontsize]: <BR>
39      &nbsp;&nbsp;&nbsp;&nbsp;[locleg]: location of the legend (0, autmoatic)<BR>
40      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR>
41      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR>
42      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9: 'upper center', 10: 'center'<BR>
43      &nbsp;&nbsp;&nbsp;&nbsp;[fontsize]: font size for the legend (auto for 12)<BR>
44      &nbsp;&nbsp;&nbsp;&nbsp;[gvarname]: name of the variable to appear in the graph<BR>
45      &nbsp;&nbsp;&nbsp;&nbsp;[timetit]: title of the time axis (assumed x-axis, '|' for spaces)<BR>
46      &nbsp;&nbsp;&nbsp;&nbsp;[tkind]: kind of time to appear in the graph (assumed x-axis)<BR>
47      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Nval': according to a given number of values as 'Nval',[Nval]<BR>
48      &nbsp;&nbsp;&nbsp;&nbsp;'exct': according to an exact time unit as 'exct',[tunit]; <BR>
49      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,<BR>
50      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'w': week, 'd': day, 'h': hour, 'i': minute, 's': second, <BR>
51      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'l': milisecond<BR>
52      &nbsp;&nbsp;&nbsp;&nbsp;[timefmt]: format of the time labels<BR>
53      &nbsp;&nbsp;&nbsp;&nbsp;[title]: title of the graphic ('|' for spaces)<BR>
54      &nbsp;&nbsp;&nbsp;&nbsp;[gkind]: kind of graphical output<BR>
55      &nbsp;&nbsp;&nbsp;&nbsp;[colorlines]: ',' list of colors for the lines, 'None' for automatic, single<BR>
56      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value all the same<BR>
57      &nbsp;&nbsp;&nbsp;&nbsp;[typelines]: ',' list of types for the lines, 'None' for automatic, single<BR>
58      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value all the same<BR>
59      &nbsp;&nbsp;&nbsp;&nbsp;[widthlines]: ',' list of width for the lines, 'None' for automatic, single<BR>
60      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value all the same<BR>
61      &nbsp;&nbsp;&nbsp;&nbsp;[pointtype]: ',' list of type of points for the lines, 'None' for automatic, single<BR>
62      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value all the same<BR>
63      &nbsp;&nbsp;&nbsp;&nbsp;[pointsizee]: ',' list of size of points for the lines, 'None' for automatic, single<BR>
64      &nbsp;&nbsp;&nbsp;&nbsp;value all the same<BR>
65      &nbsp;&nbsp;&nbsp;&nbsp;[pointfreq]: frequency of point plotting, 'all' for all time steps<BR>
66      &nbsp;&nbsp;&nbsp;&nbsp;[figclose]: whether figure should be close or not<BR>
67      variable= variable to use<BR>
68    </DIV>
69    <DIV CLASS="valins">
70      $ python ${pyHOME}/drawing.py -o draw_vals_trajectories -f /media/lluis/ExtDiskD/bkup/foudre/etudes/WL_HyMeX/medic950116/wlmdza/tevol_boxtraj.nc,/media/lluis/ExtDiskD/bkup/foudre/etudes/WL_HyMeX/medic950116/wlmdzb/tevol_boxtraj.nc,/media/lluis/ExtDiskD/bkup/foudre/etudes/WL_HyMeX/medic950116/control/tevol_boxtraj.nc -S 'maxcircle:Srange,Srange:-1:$WRF_{CRM}$,$LMDZ_{AR4.0}$,$LMDZ_{NPv3.1}$:0|12:wss:time|($[DD]^[HH]$):exct,6,h:$%d^{%H}$:trajectory|following|mean:png:None:-:2:x:1.5:all:True' -v wss
71    </DIV>
72  </BODY>
73</HTML>
74
Note: See TracBrowser for help on using the repository browser.