source: lmdz_wrf/trunk/tools/documentation/plotting/Taylor.html @ 1553

Last change on this file since 1553 was 1450, checked in by lfita, 8 years ago

Fixing right url for the source of the Taylor plot from Yannick Copin

File size: 3.3 KB
Line 
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      &nbsp;&nbsp;  [reflabel]: label of the reference values in the graph<BR>
33      &nbsp;&nbsp;  [mark]: ',' list of kind of markers (single value for the same for all values)<BR>
34      &nbsp;&nbsp;  [col]: ',' list of color of markers (single value for the same for all values)<BR>
35      &nbsp;&nbsp;  [size]: ',' list of sizes of markers (single value for the same for all values)<BR>
36      &nbsp;&nbsp;  [labels]: ',' list of label of markers ('None' for without)<BR>
37      &nbsp;&nbsp;  [kindlabels]: kind of labels in plot<BR>
38      &nbsp;&nbsp;&nbsp;&nbsp;    'markfollow': on top of the mark of each pair of stddev, corr<BR>
39      &nbsp;&nbsp;&nbsp;&nbsp;    'legend',[loc],[charsize]: as a traditional legend and [loc] position [charsize] (size of labels, 'auto' for 12)<BR>
40      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR>
41      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR>
42      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      9: 'upper center', 10: 'center' <BR>
43      &nbsp;&nbsp;  [taylorkind]: kind of Taylor plot<BR>
44      &nbsp;&nbsp;&nbsp;&nbsp;    'direct': direct values<BR>
45      &nbsp;&nbsp;&nbsp;&nbsp;    'norm': normalized to the stdandard deviation of reference<BR>
46      &nbsp;&nbsp;  [imgtit]: title of the image ('!' for spaces)<BR>
47      &nbsp;&nbsp;  [figkind]: kind of the figure<BR>
48      &nbsp;&nbsp;  [outputfile]: Whether is required to create a netcdf file with the information used in the Taylor diagram<BR>
49      &nbsp;&nbsp;  [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
Note: See TracBrowser for help on using the repository browser.