Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 28842e744495811080ce537d0b6dab00 > files > 269

grads-2.0.a9-0.2.fc15.i686.rpm

<!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.-->

<h2><b>stnave</b></h2><p> 

<code>stnave(<i>expr,dexpr1,dexpr2<,-m cnt></i>)</code><p>

Takes an average of station data over time: <p>

<code><i>expr</i></code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
A valid
GrADS expression that gives a station data result. <br>
<code><i>dexpr1</i></code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A
dimension expression giving
the starting time for the average. <br>
<code><i>dexpr2</i></code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A
dimension expression giving
the ending time for the average.<br>
<code><i>-m cnt</i></code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Optional minimal data count
for the average to be taken. If, in the time series, there are fewer
available data points for a particular station than the cnt value, then
the result for that station is the missing data value. The default cnt
value is 1 (ie, even 1 valid station in a time series of even thousands of
points would give a valid    result for that station).<p> 

<h3>Usage Notes</h3><p> 

<ol>
<li>The times are looped through based on the time interval of the default
file. It is thus very important to set the default file to that of the
station data file, or a file with the same time interval, or not all
station reports will be included in the average.<p> 

<li>If there is more than one report per station for a particular time,
those reports are averaged equally to arrive at a single value for that
time. The final average consists of each report for each time being
averaged, with missing times not included in the average. <p>

<li>Reports from different times are considered to be for the same station
when the station id, the latitude, and the longitude all match exactly.
<p>
</ol>

<h3>Examples</h3><p> 

<ol>
<li>A typical usage of the stnave function would be: <p>

<dd><code>stnave(ts,t=1,t=20,-m 10) </code><p>

Here an average is taken over 20 times, and if there are fewer than 10
reports for a station then that station will be missing in the final
result. 
</ol>