<div dir="ltr">Hi everybody, I&#39;m working with NOA high resolution daily sea surface temperature anomalies. I have 3D variable sst(days,lat,lon) and want to compute average for the week, so I created sst_avg(lat,lon) float 2D array full with zeros, to save the sum of all days in this variable( very simple). But the problem is that this sum is not working so sst_avg is full of zeros after the operation. <div><br></div><div>The main features of the code arre below:<br><br><div><b><font face="garamond, serif">sst   = a-&gt;anom</font></b></div><div><b><font face="garamond, serif">dims  = dimsizes(sst)</font></b></div><div><b><font face="garamond, serif">times = dims(0)</font></b></div><div><b><font face="garamond, serif">row   = dims(1)</font></b></div><div><b><font face="garamond, serif">col   = dims(2)<br><br></font></b></div><div><b><font face="garamond, serif">sst@_FillValue = 0.</font></b></div><div><b><font face="garamond, serif" color="#ff9900">sst_avg = new((/row,col/),&quot;float&quot;,0.)</font></b></div><div><b><font face="garamond, serif">sst_avg@_FillValue = 0.</font></b></div><div><b><font face="garamond, serif">copy_VarCoords(sst(0,:,:),sst_avg)</font></b></div><div><b><font face="garamond, serif"> printVarSummary(sst) <br> do it =0,times-1</font></b></div><div><b><font face="garamond, serif">             <font color="#ff9900">sst_avg = sst_avg + sst(it,:,:)</font></font></b></div><div><b><font face="garamond, serif">             print(sst_avg)</font></b></div><div><b><font face="garamond, serif">        end do</font></b></div><div><b><font face="garamond, serif">printVarSummary(sst_avg)<br></font></b><br>sst.PNG, and sst_avg.PNG show the information of sst and sst_avg after the iteration.<br><br>I thought that has something to do with @FillValue, but I changed this and the only thing I got was very huge and nonsense numbers instead of sst_avg full with zeros.<br><br>P.S: I know there are nicer ways of computing average, but my doubt is mainly about the sum that is not working. Thank you very much in advance and any help would be really appreciated.<br><br>All the best,<br>Sebastián.</div><div><br></div><br></div></div>