<div dir="ltr">Hi everybody, I&#39;m doing very simple array operations, but it seems that NCL doesn&#39;t agree with me, and I&#39;m getting very wrong numbers.<br><br>Here is the code I&#39;m refering too: <br><br>I&#39;m trying to make a weekly average of daily sst temperatures, so sst is( times, lat,lon), then I define a 2D array(lat,lon) , sst_avg, and initializes with 0 , up to now everythings goes ok. But in this case, after the orange do sst_average is still full with zeros. Finally, I&#39;m just trying to divide each element of sst_avg by number of times(days), so I&#39;ll get the average. But this not work. And it&#39;s seems to be very basic error. Any help would be really appreciated.<br><br><br><div><font face="garamond, serif"> <font size="4">sst = a-&gt;anom(:,:,:)   </font></font></div><div><font face="garamond, serif" size="4"> printVarSummary(sst)</font></div><div><font face="garamond, serif" size="4"> times=dimsizes(sst(:,0,0))               </font></div><div><font face="garamond, serif" size="4"> row  = dimsizes(sst(0,:,0))              </font></div><div><font face="garamond, serif" size="4"> col  = dimsizes(sst(0,0,:))                </font></div><div><font face="garamond, serif" size="4"> sst_avg = new((/row,col/),&quot;float&quot;,0)</font></div><div><font face="garamond, serif" size="4">        <span style="background-color:rgb(255,153,0)"> do it =0,times-1                  </span></font></div><div><font face="garamond, serif" size="4" style="background-color:rgb(255,153,0)">             sst_avg(:,:)=sst_avg(:,:)+sst(it,:,:)</font></div><div><font face="garamond, serif" size="4" style="background-color:rgb(255,153,0)">         end do</font></div><div><font face="garamond, serif" size="4"> print(sst_avg)       </font></div><div><font face="garamond, serif" size="4"> sst_avg(:,:)=sst_avg(:,:)/times    ; Calculo anomalia semanal promedio</font></div><div><br><br>All the best, <br>Sebastián.  <br></div></div>