<div dir="ltr"><div>Hi NCL Talk,</div><div> I am trying to calculate
the value for each grid using the function as explained in the script,
but at the end the result is one value only. I want the value at each grid point.<span style="background-color:rgb(111,168,220)"><b><span style="background-color:rgb(252,229,205)"><span style="color:rgb(0,0,0)"></span></span></b></span></div><div><font size="2"><span style="color:rgb(255,0,0)"><b>Script is as follows and datafile is attached herewith.</b></span></font></div><div><span style="color:rgb(0,0,255)">;begin<br>a=addfile("Data_File.nc","r")<br>x=a->tym(0:4,:,:)<br>y=a->rf(0:4,:,:)<br>v=a->tym(5:9,:,:)<br>w=a->rf(5:9,:,:)<br>A1= ((sum(y))*(sum(sqrt(x)))-(sum(x))*(sum(x*y)))/(5*(sum(sqrt(x)))-(sqrt(sum(x))))<br>B1= (5*(sum(x*y))-(sum(x)*sum(y))/(5*(sum(sqrt(x)))-(sqrt(sum(x)))))<br>A2= ((sum(w))*(sum(sqrt(v)))-(sum(v))*(sum(v*w)))/(5*(sum(sqrt(v)))-(sqrt(sum(v))))<br>B2= (5*(sum(v*w))-(sum(v)*sum(w))/(5*(sum(sqrt(v)))-(sqrt(sum(v)))))<br>chpOnset = ((A1-A2)/(B2-B1))<br>print(chpOnset)</span></div><div><span style="color:rgb(0,0,255)"><font size="2"><span style="background-color:rgb(217,234,211)"><span style="color:rgb(255,0,0)"><b>Please, help me to find out the mistake I am making. Your reply is very important to me. Thanks in advance.</b></span></span></font></span></div><div><div dir="ltr" class="gmail_signature" data-smartmail="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"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4">Regards,</font></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=1flpEpH50fxgPRxFvuyiLu2A70K0UoFx-&revid=0Byj9ykpbAx3od3R4N016WWh0MnlGQ1JHUTg4Nk5HVmVMS2ZNPQ" width="304" height="116"><br></div><div> <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>