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 | Nlines time |
---|
11 | </DIV> |
---|
12 | <DIV CLASS="valimg"> |
---|
13 | Plotting a series of multiples 1D curves which share one time-dimension |
---|
14 | <IMG WIDTH="100%" SRC="figs/lines_time.png"></IMG> |
---|
15 | </DIV> |
---|
16 | <DIV CLASS="valhelp"> |
---|
17 | draw_lines_time(ncfilens, values, varnames):<BR> |
---|
18 | ncfilens= [filen] ',' separated list of netCDF files<BR> |
---|
19 | values= [dimvname];[valuesaxis];[dimtit];[dimxyfmt];[leglabels];[vtit];[title];[rangevals];[timevals];<BR> |
---|
20 | [legvals];[graphk];[collines];[points];[linewidths];[pointsizes];[pointfreq];[period];[close]<BR> |
---|
21 | [dimvname]: ',' list of names of the variables with he values of the common dimension ('WRFtime' for WRF Times variable)<BR> |
---|
22 | [valuesaxis]: which axis will be used for the values ('x', or 'y')<BR> |
---|
23 | [dimtit]: title for the common dimension ('|' for spaces)<BR> |
---|
24 | [dimxyfmt]=[dxs],[dxf],[Ndx],[ordx],[dys],[dyf],[Ndy],[ordx]: format of the values at each axis (or 'auto')<BR> |
---|
25 | [dxs]: style of x-axis ('auto' for 'pretty')<BR> |
---|
26 | 'Nfix', values computed at even 'Ndx'<BR> |
---|
27 | 'Vfix', values computed at even 'Ndx' increments<BR> |
---|
28 | 'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals (2.,2.5,4,5,10)<BR> |
---|
29 | [dxf]: format of the labels at the x-axis ('auto' for '%5g')<BR> |
---|
30 | [Ndx]: Number of ticks at the x-axis ('auto' for 5)<BR> |
---|
31 | [ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)<BR> |
---|
32 | [dys]: style of y-axis ('auto' for 'pretty')<BR> |
---|
33 | [dyf]: format of the labels at the y-axis ('auto' for '%5g')<BR> |
---|
34 | [Ndy]: Number of ticks at the y-axis ('auto' for 5)<BR> |
---|
35 | [ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)<BR> |
---|
36 | [leglabels]: ',' separated list of names for the legend ('None', no legend '!' for spaces, '*' for no label)<BR> |
---|
37 | [vartit]: name of the variable in the graph<BR> |
---|
38 | [title]: title of the plot ('|' for spaces)<BR> |
---|
39 | [rangevals]: Range of the axis with the values ('None' for 'auto','auto')<BR> |
---|
40 | [vmin],[vmax]: minimum and maximum values where [vmNN] can also be:<BR> |
---|
41 | 'auto': the computed minimumm or maximum of the values <BR> |
---|
42 | [timevals]: [timen]|[units]|[kind]|[tfmt] time labels characteristics<BR> |
---|
43 | [timen]; name of the time variable<BR> |
---|
44 | [units]; units string according to CF conventions ([tunits] since <BR> |
---|
45 | [YYYY]-[MM]-[DD] [[HH]:[MI]:[SS]], '!' for spaces)<BR> |
---|
46 | [kind]; kind of output<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 | [tfmt]; desired format<BR> |
---|
53 | [legvals]=[locleg]|[fontsize]: <BR> |
---|
54 | [locleg]: location of the legend (0, autmoatic)<BR> |
---|
55 | 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR> |
---|
56 | 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR> |
---|
57 | 9: 'upper center', 10: 'center'<BR> |
---|
58 | [fontsize]: font size for the legend (auto for 12)<BR> |
---|
59 | [graphk]: kind of the graphic<BR> |
---|
60 | [lines]: ',' list of type of lines, None for automatic, single value all the same<BR> |
---|
61 | [collines]: ',' list of colors for the lines, None for automatic, single <BR> |
---|
62 | value all the same<BR> |
---|
63 | [points]: '@' list of type of points for the lines, None for automatic, single<BR> |
---|
64 | value all the same<BR> |
---|
65 | [linewidths]: ',' list of widths for the lines, None for automatic, single<BR> |
---|
66 | value all the same<BR> |
---|
67 | [pointsizes]: ',' list of widths for the lines, None for automatic, single<BR> |
---|
68 | value all the same<BR> |
---|
69 | [pointfreq]: frequency of point plotting, 'all' for all time steps<BR> |
---|
70 | [period]: which period to plot<BR> |
---|
71 | '-1': all period<BR> |
---|
72 | [beg],[end]: beginning and end of the period in reference time-units of first file<BR> |
---|
73 | [close]: Whether figure should be finished or not<BR> |
---|
74 | varnames= ',' list of variable names to plot (assuming only 1 variable per file)<BR> |
---|
75 | </DIV> |
---|
76 | <DIV CLASS="valins"> |
---|
77 | $ python ${pyHOME}/drawing.py -o draw_lines_time -f wrfout_d01_2001-11-11_00:00:00_west_east_B20-E20-I1_south_north_B20-E20-I1.nc,wrfout_d01_2001-11-11_00:00:00_west_east_B25-E25-I1_south_north_B25-E25-I1.nc,wrfout_d01_2001-11-11_00:00:00_west_east_B35-E35-I1_south_north_B35-E35-I1.nc -S 'WRFtime;y;time ([DD]${[HH]}$);auto;we=20$\times$sn=20,we=25$\times$sn=25,we=35$\times$sn=35;tas;tas|evolution|at|3|different|grid|points;None;time|hours!since!1949-12-01_00:00:00|exct,3,h|%d$^{%H}$;0|12;png;-;r,g,b;.;2.;2.;all;-1;True' -v T2 |
---|
78 | </DIV> |
---|
79 | </BODY> |
---|
80 | </HTML> |
---|
81 | |
---|