Taylor Diagrams in IDL [message #82744] |
Thu, 10 January 2013 11:08  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I was poking around last night on the ExelisVis Code Library web page
and found an extremely well-written program by Fernando Santoro that
implemented a Taylor Diagram using the IDL 8 function graphics routines.
Having need one of these for some time, I immediately set about
converting the program to Coyote Graphics. I'm afraid I have shamelessly
stolen most of Fernado's hard work. To make up for it, I have added a
couple of features that I thought the original program lacked.
If you have not yet converted to IDL 8 graphics, you may be
interested in this direct graphics implementation. You can
read more about it here:
http://www.idlcoyote.com/cg_tips/taylordiagram.php
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Taylor Diagrams in IDL [message #82844 is a reply to message #82744] |
Tue, 15 January 2013 03:32   |
seanelvidge
Messages: 11 Registered: January 2013
|
Junior Member |
|
|
Hi David,
Thanks very much for the this programme. I am having some trouble getting it to run. I've narrowed down the problem to line 448:
cgText, stddev_max, y[-1], ' 1.0', CHARSIZE=cgDefCharsize()*0.85, CLIP=0, COLOR=c_correlation
Indexing y with -1 gives an error message, which it should? Or am I missing something? (y is a 1000 element array).
Many thanks,
Sean
On Thursday, 10 January 2013 19:08:05 UTC, David Fanning wrote:
> Folks,
>
>
>
> I was poking around last night on the ExelisVis Code Library web page
>
> and found an extremely well-written program by Fernando Santoro that
>
> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>
>
>
> Having need one of these for some time, I immediately set about
>
> converting the program to Coyote Graphics. I'm afraid I have shamelessly
>
> stolen most of Fernado's hard work. To make up for it, I have added a
>
> couple of features that I thought the original program lacked.
>
>
>
> If you have not yet converted to IDL 8 graphics, you may be
>
> interested in this direct graphics implementation. You can
>
> read more about it here:
>
>
>
> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Taylor Diagrams in IDL [message #82854 is a reply to message #82744] |
Tue, 22 January 2013 14:18   |
santorofer
Messages: 14 Registered: July 2008
|
Junior Member |
|
|
Hi David and all,
Thank you so much David for your kind comments on my Taylor plot using New Graphics!. I did notice that I didn't have a way to add labels to the data points, as you did in the DC version of the code, so I did that.
Now there is a new version of my code using New Graphics. The adding to the code, to show labels next to each data point, was straight forward, just 2 lines of code:
; Adding labels next to each data point
delta=0.02
label=TEXT(data_x + delta, data_y + delta, labels, /DATA)
where data_x and _y are the data point coordinates, and labels is an array of strings, where each element is the label for that particular data point.
This simplicity is one of the advantages of New Graphics.
Please, find my code here:
http://www.exelisvis.com/Default.aspx?tabid=1540&id=1396
Cheers and thanks again for your comments David!,
Fernando
On Thursday, January 10, 2013 12:08:05 PM UTC-7, David Fanning wrote:
> Folks,
>
>
>
> I was poking around last night on the ExelisVis Code Library web page
>
> and found an extremely well-written program by Fernando Santoro that
>
> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>
>
>
> Having need one of these for some time, I immediately set about
>
> converting the program to Coyote Graphics. I'm afraid I have shamelessly
>
> stolen most of Fernado's hard work. To make up for it, I have added a
>
> couple of features that I thought the original program lacked.
>
>
>
> If you have not yet converted to IDL 8 graphics, you may be
>
> interested in this direct graphics implementation. You can
>
> read more about it here:
>
>
>
> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Taylor Diagrams in IDL [message #84505 is a reply to message #82744] |
Tue, 21 May 2013 18:59   |
JP
Messages: 55 Registered: April 2008
|
Member |
|
|
David,
Great stuff, I am using it now.
It would be great if it had a /overplot option. I want to show results from several model runs and as all the labels there create a bit of a mess, i want to use several colors and symbols.
Any chance to include such a feature in the near future?
(or is that possible but i'm not seeing it?)
cheers
JP
On Friday, 11 January 2013 06:08:05 UTC+11, David Fanning wrote:
> Folks,
>
>
>
> I was poking around last night on the ExelisVis Code Library web page
>
> and found an extremely well-written program by Fernando Santoro that
>
> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>
>
>
> Having need one of these for some time, I immediately set about
>
> converting the program to Coyote Graphics. I'm afraid I have shamelessly
>
> stolen most of Fernado's hard work. To make up for it, I have added a
>
> couple of features that I thought the original program lacked.
>
>
>
> If you have not yet converted to IDL 8 graphics, you may be
>
> interested in this direct graphics implementation. You can
>
> read more about it here:
>
>
>
> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|
Re: Taylor Diagrams in IDL [message #86551 is a reply to message #86550] |
Mon, 18 November 2013 16:25   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
clay.blankenship@gmail.com writes:
> I can't figure out how to plot several of these in different windows. (Or alternatively, several in the same window.)
Are you talking about cgTaylorDiagram? If so, I would do it like this.
labels = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']
stddev = [1.4, 0.9, 1.0, 1.272, 1.1, 0.95, 1.08, 0.5]
correlation = [0.8, 0.9, 0.65, 0.74, 0.91, 0.98, 0.85, 0.35]
ref_std = 1.0
stddev_max = 1.5
cgDisplay, WID=0
cgTaylorDiagram, stddev, correlation, REF_STDDEV=ref_std, $
STDDEV_MAX=stddev_max, RMS_INCREMENT=0.25, RMS_FORMAT='(F0.2)', $
LABELS=labels
labels = ['I', 'J', 'K', 'L', 'M', 'N', 'O', 'P']
stddev = [1.25, 0.7, 1.1, 0.86, 1.5, 1.21, 0.78, 0.52]
correlation = Reverse([0.8, 0.9, 0.65, 0.74, 0.91, 0.98, 0.85, 0.35])
cgDisplay, WID=1
cgTaylorDiagram, stddev, correlation, LABELS=labels, C_SYMBOL='blue'
END
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Taylor Diagrams in IDL [message #86562 is a reply to message #86551] |
Tue, 19 November 2013 14:34   |
clay.blankenship
Messages: 3 Registered: November 2013
|
Junior Member |
|
|
On Monday, November 18, 2013 6:25:52 PM UTC-6, David Fanning wrote:
> clay.blankenship@gmail.com writes:
>
>
>
>> I can't figure out how to plot several of these in different windows. (Or alternatively, several in the same window.)
>
>
>
> Are you talking about cgTaylorDiagram? If so, I would do it like this.
>
>
>
> labels = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']
>
> stddev = [1.4, 0.9, 1.0, 1.272, 1.1, 0.95, 1.08, 0.5]
>
> correlation = [0.8, 0.9, 0.65, 0.74, 0.91, 0.98, 0.85, 0.35]
>
> ref_std = 1.0
>
> stddev_max = 1.5
>
> cgDisplay, WID=0
>
> cgTaylorDiagram, stddev, correlation, REF_STDDEV=ref_std, $
>
> STDDEV_MAX=stddev_max, RMS_INCREMENT=0.25, RMS_FORMAT='(F0.2)', $
>
> LABELS=labels
>
>
>
> labels = ['I', 'J', 'K', 'L', 'M', 'N', 'O', 'P']
>
> stddev = [1.25, 0.7, 1.1, 0.86, 1.5, 1.21, 0.78, 0.52]
>
> correlation = Reverse([0.8, 0.9, 0.65, 0.74, 0.91, 0.98, 0.85, 0.35])
>
> cgDisplay, WID=1
>
> cgTaylorDiagram, stddev, correlation, LABELS=labels, C_SYMBOL='blue'
>
>
>
> END
>
I tried this but when I call cgTaylorDiagram, it still uses window 0 rather than the one I just made with cgDisplay.
Thanks,
Clay
|
|
|
|
|
|
|
|
|
Re: Taylor Diagrams in IDL [message #90201 is a reply to message #82744] |
Tue, 10 February 2015 12:06   |
siumtesfai
Messages: 62 Registered: April 2013
|
Member |
|
|
On Thursday, January 10, 2013 at 2:08:05 PM UTC-5, David Fanning wrote:
> Folks,
>
> I was poking around last night on the ExelisVis Code Library web page
> and found an extremely well-written program by Fernando Santoro that
> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>
> Having need one of these for some time, I immediately set about
> converting the program to Coyote Graphics. I'm afraid I have shamelessly
> stolen most of Fernado's hard work. To make up for it, I have added a
> couple of features that I thought the original program lacked.
>
> If you have not yet converted to IDL 8 graphics, you may be
> interested in this direct graphics implementation. You can
> read more about it here:
>
> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>
> Cheers,
>
> David
>
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Any update to cgTaylordiagram on how to plot both negative and positive correlation.
As mentioned above, some climate models have negative correlation or perform poor.
Best Wishes
|
|
|
|
|
|
|
|
Re: Taylor Diagrams in IDL [message #93923 is a reply to message #90201] |
Fri, 25 November 2016 02:44   |
rjp23
Messages: 97 Registered: June 2010
|
Member |
|
|
On Tuesday, February 10, 2015 at 8:06:58 PM UTC, Sium T wrote:
> On Thursday, January 10, 2013 at 2:08:05 PM UTC-5, David Fanning wrote:
>> Folks,
>>
>> I was poking around last night on the ExelisVis Code Library web page
>> and found an extremely well-written program by Fernando Santoro that
>> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>>
>> Having need one of these for some time, I immediately set about
>> converting the program to Coyote Graphics. I'm afraid I have shamelessly
>> stolen most of Fernado's hard work. To make up for it, I have added a
>> couple of features that I thought the original program lacked.
>>
>> If you have not yet converted to IDL 8 graphics, you may be
>> interested in this direct graphics implementation. You can
>> read more about it here:
>>
>> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>>
>> Cheers,
>>
>> David
>>
>>
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
>
> Any update to cgTaylordiagram on how to plot both negative and positive correlation.
>
> As mentioned above, some climate models have negative correlation or perform poor.
>
> Best Wishes
A bit of a bump but did anyone ever implement this? Everything was going smoothly until I got some negative correlations.
Cheers
|
|
|
Re: Taylor Diagrams in IDL [message #94329 is a reply to message #82744] |
Wed, 12 April 2017 19:53   |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
On Thursday, January 10, 2013 at 7:08:05 PM UTC, David Fanning wrote:
> Folks,
>
> I was poking around last night on the ExelisVis Code Library web page
> and found an extremely well-written program by Fernando Santoro that
> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>
> Having need one of these for some time, I immediately set about
> converting the program to Coyote Graphics. I'm afraid I have shamelessly
> stolen most of Fernado's hard work. To make up for it, I have added a
> couple of features that I thought the original program lacked.
>
> If you have not yet converted to IDL 8 graphics, you may be
> interested in this direct graphics implementation. You can
> read more about it here:
>
> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>
> Cheers,
>
> David
>
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Taylor Diagrams in IDL [message #94330 is a reply to message #82744] |
Wed, 12 April 2017 19:57   |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
On Thursday, January 10, 2013 at 7:08:05 PM UTC, David Fanning wrote:
> Folks,
>
> I was poking around last night on the ExelisVis Code Library web page
> and found an extremely well-written program by Fernando Santoro that
> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>
> Having need one of these for some time, I immediately set about
> converting the program to Coyote Graphics. I'm afraid I have shamelessly
> stolen most of Fernado's hard work. To make up for it, I have added a
> couple of features that I thought the original program lacked.
>
> If you have not yet converted to IDL 8 graphics, you may be
> interested in this direct graphics implementation. You can
> read more about it here:
>
> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>
> Cheers,
>
> David
>
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Taylor Diagrams in IDL [message #94331 is a reply to message #82744] |
Wed, 12 April 2017 19:59  |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
On Thursday, January 10, 2013 at 7:08:05 PM UTC, David Fanning wrote:
> Folks,
>
> I was poking around last night on the ExelisVis Code Library web page
> and found an extremely well-written program by Fernando Santoro that
> implemented a Taylor Diagram using the IDL 8 function graphics routines.
>
> Having need one of these for some time, I immediately set about
> converting the program to Coyote Graphics. I'm afraid I have shamelessly
> stolen most of Fernado's hard work. To make up for it, I have added a
> couple of features that I thought the original program lacked.
>
> If you have not yet converted to IDL 8 graphics, you may be
> interested in this direct graphics implementation. You can
> read more about it here:
>
> http://www.idlcoyote.com/cg_tips/taylordiagram.php
>
> Cheers,
>
> David
>
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Hello,
I would like to put negative Correlation value in Taylor diagram. Can anyone help please?
Regards,
|
|
|