Hi,<br>&nbsp;&nbsp;&nbsp;&nbsp; I am trying to produce a Longitude-height anomaly for temp (averaged over 5S to 5N, and also averaged over a time period). So X-axis is Longitude, and Y-axis is height.<br>I tried this, and the script is working. But I know that it is not what I wanted. I wanted to calculate the anomaly at each point of time, and each grid; then make an average of the anomalies over 5S to 5N, and over a time period (20mar to 25mar).
<br><br>&#39;sdfopen <a href="http://temp.2000.nc">temp.2000.nc</a>&#39;<br>&#39;set lon 40 200&#39;; &#39;set z 1 12&#39;; &#39;set lat 0&#39;<br>&#39;define mean=ave(ave(temp,time=20mar,time=10jun),lat=-5,lat=5)&#39;<br>
&#39;define aa=ave(ave(temp-mean,time=20mar,time=25mar),lat=-5,lat=5)&#39;<br>&#39;d aa&#39;<br><br>I tried using a loop, but that did not work.&nbsp; Any help!!<br><br><br><br><br><br><br>