<div dir="ltr">


        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 2.2  (Linux)"><meta name="CREATED" content="20080821;8074000"><meta name="CHANGED" content="20080821;10304500">




        <style type="text/css">
        &lt;!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
        --&gt;
        </style>

<p class="western" style="margin-bottom: 0cm;" lang="en-US">Hi grads
users,</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">I want
average a field for several times. I don&#39;t use the intrinsic function
ave/aave, but use the command line like this:</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">
while(tt&lt;=ttf)</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">  &#39;define
soma=soma+hgt(t=&#39;tt&#39;)</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">  endwhile</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">In the 6<sup>th</sup>
time, the sum (the soma variable) become undefined (see the attached
figure soma_after.png) in the point 52.5S,95W/265E; but the field in
this  6<sup>th</sup> time is not undefined (see the attached figure
field_6.png). The sum in the 5<sup>th</sup> time is right (see the
attached figure soma_before.png). In the point  <span lang="en-US">52.5S,95W/265E,
the the sum in the 5</span><sup><span lang="en-US">th</span></sup><span lang="en-US">
time have the value 27068hPa, the variable in the 6</span><sup><span lang="en-US">th</span></sup><span lang="en-US">
time is 5698hPa, and the sum with the 6</span><sup><span lang="en-US">th</span></sup><span lang="en-US">
value included is 32766hPa. Why this value is not shown in the
display command? The data that I use is the NCEP/DOE reanalysis.</span></p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">I use PC
linux Ubuntu 2.6.20-17.37-generic.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">The grads
config is:</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">Config:
v1.9b4 32-bit little-endian readline sdf/xdf netcdf lats printim</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">Grid
Analysis and Display System (GrADS) Version 1.9b4</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">Copyright
(c) 1988-2005 by Brian Doty and IGES</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">Center for
Ocean-Land-Atmosphere Studies (COLA)</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">Institute
for Global Environment and Society (IGES)</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">This
program is distributed WITHOUT ANY WARRANTY</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">See file
COPYRIGHT for more information.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">Built Mon
May 23 14:17:20 EDT 2005 for i686-pc-linux-gnu</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">This
version of GrADS has been configured with the following options:</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o This
is a 32-bit LITTLE ENDIAN machine version.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o
Command line editing (readline) ENABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o
CIRES/CDC (<a href="http://www.cdc.noaa.gov">http://www.cdc.noaa.gov</a>) SDF/XDF interface ENABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">     Use
sdfopen/xdfopen to read NetCDF files.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o DTYPE
netcdf is ENABLED; DTYPE hdfsds is DISABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o
OPeNDAP (a.k.a. DODS) gridded data interface DISABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o
OPeNDAP (a.k.a. DODS) station data interface DISABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o PCMDI
(<a href="http://www-pcmdi.llnl.gov">http://www-pcmdi.llnl.gov</a>) LATS interface ENABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">     This
version is configured to write GRIB and NetCDF files.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o DAO
(<a href="http://dao.gsfc.nasa.gov">http://dao.gsfc.nasa.gov</a>) Athena Widget GUI DISABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o
NRL/DAO/PCMDI XA or ImageMagick Image Output DISABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">   o
printim command for direct png/gif output ENABLED.</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">     (via
the GD Library -- <a href="http://www.boutell.com/gd">http://www.boutell.com/gd</a>)</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">For
additional information please consult <a href="http://grads.iges.org/grads/">http://grads.iges.org/grads/</a></p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p class="western" style="margin-bottom: 0cm;" lang="en-US">Thanks in
advance.</p>

<p class="western" style="margin-bottom: 0cm;" lang="en-US">Everson</p></div>