<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Dear folks</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I am trying to calculate significance of the regression coefficient for a gridded dataset.</div><div class="gmail_default" style="font-family:georgia,serif">I have written the followin code: </div><div class="gmail_default"><div class="gmail_default"><font face="georgia, serif"><br></font></div><div class="gmail_default"><font face="georgia, serif">f=addfile(&quot;yearmean_monmean_selmon_JJAS_mergetime_1975_2015.nc&quot;,&quot;r&quot;)</font></div><div class="gmail_default"><font face="georgia, serif">rain=f-&gt;rf(lat|:,lon|:,time|:)</font></div><div class="gmail_default"><span style="font-family:georgia,serif">; regression coefficient</span><br></div><div class="gmail_default"><span style="font-family:georgia,serif">time </span><span class="gmail-Apple-tab-span" style="font-family:georgia,serif;white-space:pre">        </span><span style="font-family:georgia,serif">= rain&amp;time</span><br></div><div class="gmail_default"><span style="font-family:georgia,serif">rc=regCoef(time,rain)</span></div><div class="gmail_default"><font face="georgia, serif">copy_VarCoords(rain(:,:,0), rc)</font></div><div class="gmail_default"><font face="georgia, serif">df1= onedtond(rc@nptxy , dimsizes(rc)) - 2</font></div><div class="gmail_default"><span style="font-family:georgia,serif">tval1 = onedtond(rc@tval , dimsizes(rc))</span><br></div><div class="gmail_default"><font face="georgia, serif">printVarSummary(tval1)</font></div><div class="gmail_default"><span style="font-family:georgia,serif">b=0.5</span><br></div><div class="gmail_default"><font face="georgia, serif">prob = betainc(df1/(df1+tval1^2),df1/2.0,0.5)       ; prob(nlat,nlon)</font></div><div class="gmail_default"><br></div></div><div class="gmail_default" style="font-family:georgia,serif">I got the following error:</div><div class="gmail_default" style="font-family:georgia,serif"><div class="gmail_default"><font color="#0000ff">fatal:betainc: The three input arrays must have the same number of dimensions</font></div><div class="gmail_default"><font color="#0000ff">fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line 19 in file regress.ncl</font></div><div><br></div><div>Please suggest me any missing step or the cause of the error.</div></div><div><br></div><div><div class="gmail_default" style="font-family:georgia,serif">​Regards</div><div class="gmail_default" style="font-family:georgia,serif">Dhirendra​</div><br></div>-- <br><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 dir="ltr">Dhirendra Kumar<div>PhD Student<br></div><div>School of Environmental Sciences, JNU<br></div><div>New Delhi (India)</div><div>Contact: <font face="comic sans ms, sans-serif">+91 9910778043</font></div><div>Alternate email: <a href="mailto:dhirendra.cub@outlook.com" target="_blank">dhirendra.cub@outlook.com</a></div><div>=========================================</div></div></div></div></div></div></div></div></div></div></div>
</div>