<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body ocsi="0" fpstyle="1" style="word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-family:Calibri,sans-serif">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Will,<br>
<br>
Thank you for the explanation and suggestion however I do not think that will work as&nbsp; pattern_cor the rightmost dimension must be lon, and my monthly data which is 1 value is in time.
<br>
<br>
Thank you.<br>
Nkese.<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF744280"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Will Hobbs [Will.Hobbs@utas.edu.au]<br>
<b>Sent:</b> 30 April 2013 19:37<br>
<b>To:</b> Nkese Mc Shine; ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Correlation Question<br>
</font><br>
</div>
<div></div>
<div>
<div style="color:rgb(0,0,0); font-family:Calibri,sans-serif; font-size:14px">Nkese</div>
<div style="color:rgb(0,0,0); font-family:Calibri,sans-serif; font-size:14px"><br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,sans-serif; font-size:14px">&gt;<span style="font-family:Tahoma; font-size:13px">I would like to make a month to month correlation. I would like to correlate 1 month of sst(lat,lon,time) with 1 month of precipitation
 which actually is 1 value. Is it possible?</span></div>
<div style="color:rgb(0,0,0); font-family:Calibri,sans-serif; font-size:14px"><span style="font-family:Tahoma; font-size:13px"><br>
</span></div>
<div><span style="color:rgb(0,0,0); font-family:Tahoma; font-size:13px">No, you can't correlate a single value (in this case a month). This is nothing to do with NCL's&nbsp;</span><font face="Tahoma"><span style="font-size:13px">capability, but&nbsp;fundamental&nbsp;to what
 a correlation is, i.e. a comparison of two variances. A single&nbsp;realisation&nbsp;(in your case a month) does not have a variance.</span></font></div>
<div><font face="Tahoma"><span style="font-size:13px"><br>
</span></font></div>
<div>What you can do (in case I misunderstood your question) is correlate the spatial pattern with that of a a single month; the output would be a time series of correlations. This can be done in NCL&nbsp;using the function 'pattern_cor()'</div>
<div style="color:rgb(0,0,0); font-family:Calibri,sans-serif; font-size:14px"><br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,sans-serif; font-size:14px">Will</div>
<div style="color:rgb(0,0,0); font-family:Calibri,sans-serif; font-size:14px"><br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color:rgb(0,0,0); font-family:Calibri,sans-serif; font-size:14px">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; border-bottom:medium none; border-left:medium none; padding-bottom:0in; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; border-right:medium none; padding-top:3pt">
<span style="font-weight:bold">From: </span>Nkese Mc Shine &lt;<a href="mailto:Nkese.McShine@sta.uwi.edu" target="_blank">Nkese.McShine@sta.uwi.edu</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday, 1 May 2013 12:11 AM<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[ncl-talk] Correlation Question<br>
</div>
<div><br>
</div>
<div dir="ltr"><style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}</style>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Dear All,<br>
<br>
I would like to make a month to month correlation. I would like to correlate 1 month of sst(lat,lon,time) with 1 month of precipitation which actually is 1 value. Is it possible? Attached is my script and below is the output. Please let me know, what I can
 do if it is possible.<br>
<br>
Variable: sst_anom<br>
Type: float<br>
Total Size: 105408000 bytes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 26352000 values<br>
Number of Dimensions: 3<br>
Dimensions and sizes:&nbsp;&nbsp;&nbsp; [lat | 100] x [lon | 360] x [time | 732]<br>
Coordinates: <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lat: [49.5..-49.5]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lon: [-179.5..179.5]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time: [194601..200612]<br>
Number Of Attributes: 12<br>
&nbsp; anomaly_op_ncl :&nbsp;&nbsp;&nbsp; Annual Cycle Removed:function rmMonAnnCycLLT:contributed.ncl<br>
&nbsp; description :&nbsp;&nbsp;&nbsp; HadISST 1.1 monthly average sea surface temperature<br>
&nbsp; actual_range :&nbsp;&nbsp;&nbsp; ( -1.8, 34.76296 )<br>
&nbsp; missing_value :&nbsp;&nbsp;&nbsp; -1e&#43;30<br>
&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; -1e&#43;30<br>
&nbsp; scale_factor :&nbsp;&nbsp;&nbsp; &nbsp;1<br>
&nbsp; cell_methods :&nbsp;&nbsp;&nbsp; time: lat: lon: mean<br>
&nbsp; add_offset :&nbsp;&nbsp;&nbsp; &nbsp;0<br>
&nbsp; units :&nbsp;&nbsp;&nbsp; degC<br>
&nbsp; standard_name :&nbsp;&nbsp;&nbsp; sea_surface_temperature<br>
&nbsp; long_name :&nbsp;&nbsp;&nbsp; Monthly 1 degree resolution SST<br>
&nbsp; reference :&nbsp;&nbsp;&nbsp; function rmMonAnnCycLLT in contrib.ncl<br>
(0)&nbsp;&nbsp;&nbsp; &nbsp;<br>
(0)&nbsp;&nbsp;&nbsp; Monthly 1 degree resolution SST: min=-8.70077&nbsp;&nbsp; max=6.98223<br>
<br>
Variable: sst_anom_jan<br>
Type: float<br>
Total Size: 144000 bytes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 36000 values<br>
Number of Dimensions: 3<br>
Dimensions and sizes:&nbsp;&nbsp;&nbsp; [lat | 100] x [lon | 360] x [time | 1]<br>
Coordinates: <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lat: [49.5..-49.5]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lon: [-179.5..179.5]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time: [199301..199301]<br>
Number Of Attributes: 12<br>
&nbsp; reference :&nbsp;&nbsp;&nbsp; function rmMonAnnCycLLT in contrib.ncl<br>
&nbsp; long_name :&nbsp;&nbsp;&nbsp; Monthly 1 degree resolution SST<br>
&nbsp; standard_name :&nbsp;&nbsp;&nbsp; sea_surface_temperature<br>
&nbsp; units :&nbsp;&nbsp;&nbsp; degC<br>
&nbsp; add_offset :&nbsp;&nbsp;&nbsp; &nbsp;0<br>
&nbsp; cell_methods :&nbsp;&nbsp;&nbsp; time: lat: lon: mean<br>
&nbsp; scale_factor :&nbsp;&nbsp;&nbsp; &nbsp;1<br>
&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; -1e&#43;30<br>
&nbsp; missing_value :&nbsp;&nbsp;&nbsp; -1e&#43;30<br>
&nbsp; actual_range :&nbsp;&nbsp;&nbsp; ( -1.8, 34.76296 )<br>
&nbsp; description :&nbsp;&nbsp;&nbsp; HadISST 1.1 monthly average sea surface temperature<br>
&nbsp; anomaly_op_ncl :&nbsp;&nbsp;&nbsp; Annual Cycle Removed:function rmMonAnnCycLLT:contributed.ncl<br>
(0)&nbsp;&nbsp;&nbsp; &nbsp;<br>
(0)&nbsp;&nbsp;&nbsp; Monthly 1 degree resolution SST: min=-2.4631&nbsp;&nbsp; max=2.59599<br>
<br>
Variable: precipanom_data_ts<br>
Type: float<br>
Total Size: 2928 bytes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 732 values<br>
Number of Dimensions: 1<br>
Dimensions and sizes:&nbsp;&nbsp;&nbsp; [time | 732]<br>
Coordinates: <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time: [194601..200612]<br>
Number Of Attributes: 1<br>
&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; 9.96921e&#43;36<br>
(0)&nbsp;&nbsp;&nbsp; &nbsp;<br>
(0)&nbsp;&nbsp;&nbsp; min=-1.73324&nbsp;&nbsp; max=3.01711<br>
<br>
Variable: precipJJA1993<br>
Type: float<br>
Total Size: 4 bytes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 values<br>
Number of Dimensions: 1<br>
Dimensions and sizes:&nbsp;&nbsp;&nbsp; [time | 1]<br>
Coordinates: <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time: [199307..199307]<br>
Number Of Attributes: 2<br>
&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; 9.96921e&#43;36<br>
&nbsp; NMO :&nbsp;&nbsp;&nbsp; 6<br>
(0)&nbsp;&nbsp;&nbsp; &nbsp;<br>
(0)&nbsp;&nbsp;&nbsp; min=0.267831&nbsp;&nbsp; max=0.267831<br>
warning:escorc: Non-fatal conditions encountered in series or xstd equals zero.<br>
Possibly, all values of a series are constant.<br>
<br>
warning:escorc: Most likely, one or more series consisted of all constant values<br>
<br>
Variable: corr<br>
Type: float<br>
Total Size: 144000 bytes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 36000 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes:&nbsp;&nbsp;&nbsp; [100] x [360]<br>
Coordinates: <br>
Number Of Attributes: 1<br>
&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; -1e&#43;30<br>
(0)&nbsp;&nbsp;&nbsp; &nbsp;<br>
(0)&nbsp;&nbsp;&nbsp; min=-1e&#43;30&nbsp;&nbsp; max=-1e&#43;30<br>
<br>
Regards,<br>
Nkese.<br>
</div>
<br clear="all">
CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and/or privileged information. Any duplication, copying, distribution, dissemination, transmission, disclosure or use in any manner of this email (including any attachments)
 without the authorisation of the sender is strictly prohibited. If you receive this email (including any attachments) in error, please notify the sender and delete this email (including any attachments) from your system. Thank you.
</div>
</div>
</span></div>
</div>
</div>
<br clear=all> CONFIDENTIALITY:  This email (including any attachments) may contain confidential, proprietary and/or privileged information.  Any duplication, copying, distribution, dissemination, transmission, disclosure or use in any manner of this email (including any attachments) without the authorisation of the sender is strictly prohibited.  If you receive this email (including any attachments) in error, please notify the sender and delete this email (including any attachments) from your system.  Thank you.
</body>
</html>