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 | 2D shadow contour time plot |
---|
11 | </DIV> |
---|
12 | <DIV CLASS="valimg"> |
---|
13 | Plotting a 2D field with shading and another one with contour lines with one of the axes with temporal values |
---|
14 | <IMG WIDTH="100%" SRC="figs/huss-tas_shad_cont_time_BuPu.png"></IMG> |
---|
15 | </DIV> |
---|
16 | <DIV CLASS="valhelp"> |
---|
17 | draw_2D_shad_cont_time(ncfile, values, varn)<BR> |
---|
18 | ncfile= [ncfilevars],[ncfilevarc] files to use (one value, same file)<BR> |
---|
19 | values=[vnamefs];[dimvals];[dimvalc];[dimxvn];[dimyvn];[dimxyf];[colorbarvals];[ckind];[clabfmt];[sminv],[smaxv];[sminc],[smaxv],[Nlev];[figt];[kindfig];[reverse];[timevals];[close]<BR> |
---|
20 | [vnamefs],[vnamefc]: Name in the figure of the shaded and the contour variables<BR> |
---|
21 | [dimvals/c]: list of [dimname]|[value] telling at which dimension of the <BR> |
---|
22 | variable a given value is required (no dimension name, all the length)<BR> |
---|
23 | [dimxvn]: name of the variables with the values of the dimension of the x-axis ('WRFtime' for WRF times)<BR> |
---|
24 | [dimyvn]: name of the variables with the values of the dimension of the y-axis ('WRFtime' for WRF times)<BR> |
---|
25 | [dimxyf]=[dxf],[Ndx],[dyf],[Ndy]: format of the values at each axis<BR> |
---|
26 | [dxs]: style of x-axis ('auto' for 'pretty')<BR> |
---|
27 | 'Nfix', values computed at even 'Ndx' (unique map plotted with constant pixel size)<BR> |
---|
28 | 'Vfix', values computed at even 'Ndx' increments<BR> |
---|
29 | 'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals (2.,2.5,4,5,10)<BR> |
---|
30 | [dxf]: format of the labels at the x-axis<BR> |
---|
31 | [Ndx]: Number of ticks at the x-axis<BR> |
---|
32 | [ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)<BR> |
---|
33 | [dys]: style of y-axis ('auto' for 'pretty')<BR> |
---|
34 | [dyf]: format of the labels at the y-axis<BR> |
---|
35 | [Ndy]: Number of ticks at the y-axis<BR> |
---|
36 | [ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)<BR> |
---|
37 | [colorbarvals]=[colbarn],[fmtcolorbar],[orientation]<BR> |
---|
38 | [colorbarn]: name of the color bar<BR> |
---|
39 | [fmtcolorbar]: format of the numbers in the color bar 'C'-like ('auto' for %6g)<BR> |
---|
40 | [orientation]: orientation of the colorbar ('vertical' (default, by 'auto'), 'horizontal')<BR> |
---|
41 | [ckind]: kind of contours <BR> |
---|
42 | 'cmap': as it gets from colorbar<BR> |
---|
43 | 'fixc,[colname]': fixed color [colname], all stright lines<BR> |
---|
44 | 'fixsigc,[colname]': fixed color [colname], >0 stright, <0 dashed line<BR> |
---|
45 | [clabfmt]: format of the labels in the contour (None, also possible)<BR> |
---|
46 | [smin/axv]: minimum and maximum value for the shading or:<BR> |
---|
47 | 'Srange': for full range<BR> |
---|
48 | 'Saroundmean@val': for mean-xtrm,mean+xtrm where xtrm = np.min(mean-min@val,max@val-mean)<BR> |
---|
49 | 'Saroundminmax@val': for min*val,max*val<BR> |
---|
50 | 'Saroundpercentile@val': for median-xtrm,median+xtrm where xtrm = np.min(median-percentile_(val),<BR> |
---|
51 | percentile_(100-val)-median)<BR> |
---|
52 | 'Smean@val': for -xtrm,xtrm where xtrm = np.min(mean-min*@val,max*@val-mean)<BR> |
---|
53 | 'Smedian@val': for -xtrm,xtrm where xtrm = np.min(median-min@val,max@val-median)<BR> |
---|
54 | 'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),<BR> |
---|
55 | percentile_(100-val)-median)<BR> |
---|
56 | [sminc]:[smaxv]:[Nlev]: minimum, maximum and number of values for the contour<BR> |
---|
57 | [figt]: title of the figure ('|' for spaces)<BR> |
---|
58 | [kindfig]: kind of figure<BR> |
---|
59 | [reverse]: modification to the dimensions:<BR> |
---|
60 | 'transposed': transpose matrices<BR> |
---|
61 | 'flip',[x/y]: flip only the dimension [x] or [y]<BR> |
---|
62 | [timevals]: [timen]|[units]|[kind]|[tfmt]|[label] time labels characteristics<BR> |
---|
63 | [timen]; name of the time variable ('WRFtime' for WRF times)<BR> |
---|
64 | [units]; units string according to CF conventions ([tunits] since <BR> |
---|
65 | [YYYY]-[MM]-[DD] [[HH]:[MI]:[SS]], '!' for spaces)<BR> |
---|
66 | [kind]; kind of output<BR> |
---|
67 | 'Nval': according to a given number of values as 'Nval',[Nval]<BR> |
---|
68 | 'exct': according to an exact time unit as 'exct',[tunit]; <BR> |
---|
69 | tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,<BR> |
---|
70 | 'w': week, 'd': day, 'h': hour, 'i': minute, 's': second, <BR> |
---|
71 | 'l': milisecond<BR> |
---|
72 | [tfmt]; desired format<BR> |
---|
73 | [label]; label at the graph ('!' for spaces)<BR> |
---|
74 | [close]: Whether figure should be finished or not<BR> |
---|
75 | varn= [varsn],[varcn] name of the variable to plot with shading variable with contour<BR> |
---|
76 | </DIV> |
---|
77 | <DIV CLASS="valins"> |
---|
78 | $ python ${pyHOME}/drawing.py -o draw_2D_shad_cont_time -f wrfout_d01_2001-11-11_00:00:00 -S 'hfls,tas;west_east|-1,south_north|27,Time|-1;south_north|27;XLONG;WRFtime;auto;BuPu,auto,auto;fixc,y;%3g;Srange,Srange;260,300,9;huss|&|tas|evolution|at|south_north=27;png;None;WRFtime|hours!since!1949-12-01|exct,1,h|$%d^{%H}$|date!($[DD]^{[HH]}$);True' -v LH,T2 |
---|
79 | </DIV> |
---|
80 | </BODY> |
---|
81 | </HTML> |
---|
82 | |
---|