<div dir="ltr"><div><div><div><div><div>Hi, <br></div>I'm trying to use specx_ci for a vector of values that are the output of specx_anal. <br></div>If I do it individually ( for every vector component) it works but when I do try to apply it for the entire vector I get the following error. <br><br>fatal:chiinv: The two input arrays must have the same dimension sizes<br><br></div>Can anyone tell me how to fix this and what's going on ? <br></div>My code is below and the part where I get the error from is in red.<br></div>Thanks. <br><div><br>begin<br>amo = addfile("<a href="http://int_ext_AMO_anom.1871-1998.nc">int_ext_AMO_anom.1871-1998.nc</a>","r")<br>index0=amo->AMO_Cext<br>index1=amo->AMO_C1int<br>index2=amo->AMO_C2int<br>index3=amo->AMO_C3int<br>index4=amo->AMO_C4int<br>indextotal=(/index0,index1,index2,index3,index4/)<br>nn=dimsizes(indextotal)<br>;*************<br>d = 0<br>sm = 3<br>pct = 0.70<br><br>spec=new((/nn(0),64/),"double")<br>do ii=0,nn(0)-1<br>spec(ii,:) = specx_anal(indextotal(ii,:),d,sm,pct)<br>end do<br><br>maxconf=0.95<br>minconf=0.05<br>printVarSummary(spec)<br><span style="color:rgb(255,0,0)">xx=specx_ci(spec(0,:),minconf,maxconf)</span><br><br><br><div><div><div><div><div><div><div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(61,133,198)"><span style="font-family:georgia,serif"><span><b>Ioana ColfescuĀ </b><br></span></span></span></span></div><div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(61,133,198)"><span style="font-family:georgia,serif"><span>Research Scientist <br></span></span></span></span></div><div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(61,133,198)"><span style="font-family:georgia,serif"><span>National Centre for Atmospheric Science <br></span></span></span></span></div><div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(61,133,198)"><span style="font-family:georgia,serif"><span>School of Earth and Environment <br></span></span></span></span></div><div><span style="background-color:rgb(243,243,243)"><span style="color:rgb(159,197,232)"><span><span style="font-family:georgia,serif"><span><span style="background-color:rgb(255,255,255)"><span style="color:rgb(61,133,198)">University of Leeds </span></span><br></span></span></span></span></span></div><div dir="ltr"><span style="color:rgb(159,197,232)"><span><span style="font-family:georgia,serif"><span><br></span></span></span></span></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div></div>