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 | Taylor Diagram |
---|
11 | </DIV> |
---|
12 | <DIV CLASS="valimg"> |
---|
13 | Plotting a Taylor Diagram <BR> |
---|
14 | <BR> |
---|
15 | <I>After a script from `Yannick Copin'</I> |
---|
16 | <IMG WIDTH="100%" SRC="figs/Taylor.png"></IMG> |
---|
17 | </DIV> |
---|
18 | <DIV CLASS="valhelp"> |
---|
19 | draw_Taylor(ncfile, values, varn)<BR> |
---|
20 | From script:<BR> |
---|
21 | # Copyright: This document has been placed in the public domain.<BR> |
---|
22 | <BR> |
---|
23 | Taylor diagram (Taylor, 2001) test implementation.<BR> |
---|
24 | <BR> |
---|
25 | https://gist.github.com/ycopin/3342888<BR> |
---|
26 | <BR> |
---|
27 | __version__ = "Time-stamp: <2012-02-17 20:59:35 ycopin>"<BR> |
---|
28 | __author__ = "Yannick Copin <yannick.copin@laposte.net>"<BR> |
---|
29 | <BR> |
---|
30 | ncfile= ',' list of netCDF file and vartiable to use ([ncfile1]@[var1], [...[nmcvileN]@[varN]])<BR> |
---|
31 | values=[reflabel]:[mark]:[col]:[size]:[labels]:[[kindlabels]:[taylorkind]:[imgtit]:[figkind]:[outputfile]:[close]<BR> |
---|
32 | [reflabel]: label of the reference values in the graph<BR> |
---|
33 | [mark]: ',' list of kind of markers (single value for the same for all values)<BR> |
---|
34 | [col]: ',' list of color of markers (single value for the same for all values)<BR> |
---|
35 | [size]: ',' list of sizes of markers (single value for the same for all values)<BR> |
---|
36 | [labels]: ',' list of label of markers ('None' for without)<BR> |
---|
37 | [kindlabels]: kind of labels in plot<BR> |
---|
38 | 'markfollow': on top of the mark of each pair of stddev, corr<BR> |
---|
39 | 'legend',[loc],[charsize]: as a traditional legend and [loc] position [charsize] (size of labels, 'auto' for 12)<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 | [taylorkind]: kind of Taylor plot<BR> |
---|
44 | 'direct': direct values<BR> |
---|
45 | 'norm': normalized to the stdandard deviation of reference<BR> |
---|
46 | [imgtit]: title of the image ('!' for spaces)<BR> |
---|
47 | [figkind]: kind of the figure<BR> |
---|
48 | [outputfile]: Whether is required to create a netcdf file with the information used in the Taylor diagram<BR> |
---|
49 | [close]: whether the figure has to be closed<BR> |
---|
50 | varname= [refncfile],[refvn] name of the reference faile and name of the variables within to use as reference<BR> |
---|
51 | </DIV> |
---|
52 | <DIV CLASS="valins"> |
---|
53 | $ python ${pyHOME}/drawing.py -o draw_Taylor -f 'file0.nc@var,file1.nc@var,file2.nc@var,file3.nc@var' -S '$10.\sin(0.05t2\pi)$:x:8:k,b,r,g,#FFBB00:$10.25\sin(0.025+0.05t2\pi)$,$10.25\sin(0.025+0.05125t2\pi)$,$10.5\sin(0.05+0.05t2\pi)$,$10.\sin(0.05+0.0525t2\pi)$:legend,0,8:norm:sinus!Taylor!diagram:png:yes:True' -v reffile.nc,var <BR> |
---|
54 | <BR> |
---|
55 | Sinus files generated with <A HREF="sinus_files.py" CLASS="lc" TARGET="_blank">sinus_files.py</A> |
---|
56 | </DIV> |
---|
57 | </BODY> |
---|
58 | </HTML> |
---|
59 | |
---|