[1451] | 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 | Time Series plot |
---|
| 11 | </DIV> |
---|
| 12 | <DIV CLASS="valimg"> |
---|
| 13 | Plotting a Time Series with line-markers |
---|
| 14 | <IMG WIDTH="100%" SRC="figs/tas_rainbow_auto.png"></IMG> |
---|
| 15 | </DIV> |
---|
| 16 | <DIV CLASS="valhelp"> |
---|
| 17 | draw_timeSeries(filen, values, variables)<BR> |
---|
| 18 | filen= name of the file<BR> |
---|
| 19 | values= [dimvalues]:[sminv],[smaxv]:[gvarname]:[timetit]:[tkind]:[timefmt]:[title]:[legvals]:<BR> |
---|
| 20 | [gkind]:[colorlines]:[typelines]:[widthlines]:[pointtype]:[pointfreq]:[figclose]<BR> |
---|
| 21 | [dimvalues]= ',' separated list of [dimname]|[slice]<BR> |
---|
| 22 | [dimname]: name of dimension<BR> |
---|
| 23 | [slice]: value to take for the given dimension<BR> |
---|
| 24 | * [integer]: which value of the dimension<BR> |
---|
| 25 | * -1: all along the dimension<BR> |
---|
| 26 | * [beg]@[end]@[freq] slice from [beg] to [end] every [freq]<BR> |
---|
| 27 | * -9: last value of the dimension<BR> |
---|
| 28 | [sminv],[smaxv]: minimum and maximum value for the lines or one value for each extreme:<BR> |
---|
| 29 | 'Srange': for full range<BR> |
---|
| 30 | 'Saroundmean@val': for mean-xtrm,mean+xtrm where xtrm = np.min(mean-min@val,max@val-mean)<BR> |
---|
| 31 | 'Saroundminmax@val': for min*val,max*val<BR> |
---|
| 32 | 'Saroundpercentile@val': for median-xtrm,median+xtrm where xtrm = np.min(median-percentile_(val),<BR> |
---|
| 33 | percentile_(100-val)-median)<BR> |
---|
| 34 | 'Smean@val': for -xtrm,xtrm where xtrm = np.min(mean-min*@val,max*@val-mean)<BR> |
---|
| 35 | 'Smedian@val': for -xtrm,xtrm where xtrm = np.min(median-min@val,max@val-median)<BR> |
---|
| 36 | 'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),<BR> |
---|
| 37 | percentile_(100-val)-median)<BR> |
---|
| 38 | [gvarname]: name of the variable to appear in the graph<BR> |
---|
| 39 | [timetit]: title of the time axis (assumed x-axis, '|' for spaces)<BR> |
---|
| 40 | [tkind]: kind of time to appear in the graph (assumed x-axis)<BR> |
---|
| 41 | 'Nval': according to a given number of values as 'Nval',[Nval]<BR> |
---|
| 42 | 'exct': according to an exact time unit as 'exct',[tunit]; <BR> |
---|
| 43 | tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,<BR> |
---|
| 44 | 'w': week, 'd': day, 'h': hour, 'i': minute, 's': second, <BR> |
---|
| 45 | 'l': milisecond<BR> |
---|
| 46 | [timefmt]: format of the time labels (C-like)<BR> |
---|
| 47 | [title]: title of the graphic ('|' for spaces)<BR> |
---|
| 48 | [legvals]=[locleg]|[fontsize]: <BR> |
---|
| 49 | [locleg]: location of the legend (0, autmoatic)<BR> |
---|
| 50 | 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR> |
---|
| 51 | 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR> |
---|
| 52 | 9: 'upper center', 10: 'center'<BR> |
---|
| 53 | [fontsize]: font size for the legend (auto for 12)<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 | [pointtype]: ',' list of type of points for the lines, 'None' for automatic, single<BR> |
---|
| 58 | value all the same<BR> |
---|
| 59 | [pointfreq]: frequency of point plotting, 'all' for all time steps<BR> |
---|
| 60 | [figclose]: whether figure should be closed or not<BR> |
---|
| 61 | variables= [varname],[timename] names of variable and variable with times<BR> |
---|
| 62 | </DIV> |
---|
| 63 | <DIV CLASS="valins"> |
---|
| 64 | $ python ${pyHOME}/drawing.py -o draw_TimeSeries -f ERAI_pl199501_131-132.nc -S 'lon|240,lat|120,time|-1,lev|0:Srange,Srange:ua:date|($[MM]^{[DD]}$):exct,15,d:$%m^{%d}$:January|1995|ERA-Interim|x-wind|at|i=240,|j=120,|k=0:ua:0|12:png:r:-:2:x:2:20:yes' -v var131,time |
---|
| 65 | </DIV> |
---|
| 66 | </BODY> |
---|
| 67 | </HTML> |
---|
| 68 | |
---|