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 | [timefmt]:[title]:[gkind]:[colorlines]:[typelines]:[widthlines]:[pointtype]:[pointsizee]:[pointfreq]:[figclose]<BR> |
---|
21 | [statisticskind]=[statistics][kind]<BR> |
---|
22 | [statistics]: which statistics to use, from: 'center', 'min', 'max', 'mean', <BR> |
---|
23 | 'mean2', 'stdev'<BR> |
---|
24 | [kind]: 'box', 'circle' statistics taking the values from a box or a circle<BR> |
---|
25 | 'trj': value following the trajectory<BR> |
---|
26 | [sminv],[smaxv]: minimum and maximum value for the lines or one value for each extreme:<BR> |
---|
27 | 'Srange': for full range<BR> |
---|
28 | 'Saroundmean@val': for mean-xtrm,mean+xtrm where xtrm = np.min(mean-min@val,max@val-mean)<BR> |
---|
29 | 'Saroundminmax@val': for min*val,max*val<BR> |
---|
30 | 'Saroundpercentile@val': for median-xtrm,median+xtrm where xtrm = np.min(median-percentile_(val),<BR> |
---|
31 | percentile_(100-val)-median)<BR> |
---|
32 | 'Smean@val': for -xtrm,xtrm where xtrm = np.min(mean-min*@val,max*@val-mean)<BR> |
---|
33 | 'Smedian@val': for -xtrm,xtrm where xtrm = np.min(median-min@val,max@val-median)<BR> |
---|
34 | 'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),<BR> |
---|
35 | percentile_(100-val)-median)<BR> |
---|
36 | [Tint]: [Tbeg]@[Tend] or None, interval of time to plot or -1 for all the times<BR> |
---|
37 | [leglabels]: ',' separated list of labels for the legend<BR> |
---|
38 | [legvals]=[locleg]|[fontsize]: <BR> |
---|
39 | [locleg]: location of the legend (0, autmoatic)<BR> |
---|
40 | 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR> |
---|
41 | 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR> |
---|
42 | 9: 'upper center', 10: 'center'<BR> |
---|
43 | [fontsize]: font size for the legend (auto for 12)<BR> |
---|
44 | [gvarname]: name of the variable to appear in the graph<BR> |
---|
45 | [timetit]: title of the time axis (assumed x-axis, '|' for spaces)<BR> |
---|
46 | [tkind]: kind of time to appear in the graph (assumed x-axis)<BR> |
---|
47 | 'Nval': according to a given number of values as 'Nval',[Nval]<BR> |
---|
48 | 'exct': according to an exact time unit as 'exct',[tunit]; <BR> |
---|
49 | tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,<BR> |
---|
50 | 'w': week, 'd': day, 'h': hour, 'i': minute, 's': second, <BR> |
---|
51 | 'l': milisecond<BR> |
---|
52 | [timefmt]: format of the time labels<BR> |
---|
53 | [title]: title of the graphic ('|' for spaces)<BR> |
---|
54 | [gkind]: kind of graphical output<BR> |
---|
55 | [colorlines]: ',' list of colors for the lines, 'None' for automatic, single<BR> |
---|
56 | value all the same<BR> |
---|
57 | [typelines]: ',' list of types for the lines, 'None' for automatic, single<BR> |
---|
58 | value all the same<BR> |
---|
59 | [widthlines]: ',' list of width for the lines, 'None' for automatic, single<BR> |
---|
60 | value all the same<BR> |
---|
61 | [pointtype]: ',' list of type of points for the lines, 'None' for automatic, single<BR> |
---|
62 | value all the same<BR> |
---|
63 | [pointsizee]: ',' list of size of points for the lines, 'None' for automatic, single<BR> |
---|
64 | value all the same<BR> |
---|
65 | [pointfreq]: frequency of point plotting, 'all' for all time steps<BR> |
---|
66 | [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 | |
---|