<div style="font:14px/1.5 'Lucida Grande', '微软雅黑';color:#333;"><p style="font:14px/1.5 'Lucida Grande';margin:0;"><p style="line-height: 1.5; margin: 0px; ">Hi, all</p><p style="line-height: 1.5; margin: 0px; ">&nbsp;&nbsp;</p><p style="line-height: 1.5; margin: 0px; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I'am dealing with the correlation between a index series and HadISST ice concentration gridded data. &nbsp;And I&nbsp;</p><p style="line-height: 1.5; margin: 0px; ">got no results when using escorc function, &nbsp;only with the following warning message :</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; ">" warning:escorc: Non-fatal conditions encountered in series or xstd equals zero.</p><p style="line-height: 1.5; margin: 0px; ">Possibly, all values of a series are constant. "</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; ">I suggest that it may be because &nbsp;the grids in land are all _FillValue and the grids in the warm ocean are all constant&nbsp;</p><p style="line-height: 1.5; margin: 0px; ">zero values. How could I get the escorc results between the index series and the corresponding grids with variable values?</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; ">&nbsp; &nbsp; &nbsp; Besides, I also suggest that the escorc could add some function, to make the corresponding correaltion values to be _FillValue when the input grids contain all constant values. &nbsp;Thank!</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; ">The attached codes :</p><p style="line-height: 1.5; margin: 0px; "><span style="line-height: 1.5; ">……. ********************************</span></p><p style="line-height: 1.5; margin: 0px; "><p style="line-height: 1.5; margin: 0px; "><p style="line-height: 1.5; margin: 0px; ">fi = addfile( data_path + data_filename ,"r")</p><p style="line-height: 1.5; margin: 0px; ">printVarSummary(fi)</p><p style="line-height: 1.5; margin: 0px; ">time &nbsp; &nbsp;= fi-&gt;time</p><p style="line-height: 1.5; margin: 0px; ">yyyymm &nbsp;= ut_calendar(time,-1)</p><p style="line-height: 1.5; margin: 0px; ">nt1 &nbsp; &nbsp; = ind(yyyymm.eq.ntStrt)</p><p style="line-height: 1.5; margin: 0px; ">nt2 &nbsp; &nbsp; = ind(yyyymm.eq.ntLast)</p><p style="line-height: 1.5; margin: 0px; ">;lat &nbsp; &nbsp; = fi-&gt;latitude</p><p style="line-height: 1.5; margin: 0px; ">;lon &nbsp; &nbsp; = fi-&gt;longitude</p><p style="line-height: 1.5; margin: 0px; ">x &nbsp; &nbsp; &nbsp; = fi-&gt;sic(nt1:nt2,{-45.:-90.},:)</p></p><p style="line-height: 1.5; margin: 0px; ">x &nbsp; &nbsp; &nbsp; = where(x.eq.0, x@_FillValue, x)</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; "><span style="line-height: 1.5; ">; ****************** &nbsp;read the AAO index series &nbsp; ********************************************</span></p><p style="line-height: 1.5; margin: 0px; ">data &nbsp; = &nbsp;asciiread("/Users/Data/indices/SAM/cpc.aao_197901-201312.txt",(/34*12,3/),"float")</p><p style="line-height: 1.5; margin: 0px; ">y &nbsp; &nbsp; &nbsp;= &nbsp;data(:,2)</p><p style="line-height: 1.5; margin: 0px; ">y!0 &nbsp; &nbsp;= &nbsp;"time"</p><p style="line-height: 1.5; margin: 0px; ">print(y(34*12-1))</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; ">ccr &nbsp; &nbsp;= &nbsp;escorc( y,x(latitude|:,longitude|:,time|:) )</p><p style="line-height: 1.5; margin: 0px; ">sig &nbsp; &nbsp;= &nbsp;rtest(ccr, 34*12, 0)&nbsp;</p><p style="line-height: 1.5; margin: 0px; ">print(" ok ")</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; ">*********************************</p></p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; ">Thank!</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; ">Lin</p><p style="line-height: 1.5; margin: 0px; "><br></p><p style="line-height: 1.5; margin: 0px; "><br></p></p></div>