/usr/share/doc/grads/html/gradfuncmax.html is in grads 2:2.0.2-8build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | <!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.-->
<html>
<head>
<title>GrADS Function: max</title>
</head>
<body bgcolor="e0f0ff" text="#000000">
<h2><b>max()</b></h2>
<p>
<code>max(<i>expr, dim1, dim2 <,tinc></i>)</code>
<p>
Returns the maximum of <code><i>expr</i></code> over the specified
dimension range. If the specified dimension is time, an
optional time increment <code><i>tincr</i></code> may be specified.
<p>
<ul>
<code><i>expr</i> </code>- any valid GrADS expression <br>
<code><i>dim1</i> </code>- the starting dimension expression<br>
<code><i>dim2</i> </code>- the ending dimension expression<br>
<code><i>tinc</i> </code>- optional time increment<br>
</ul>
<p>
<code><i>dim1</i></code> and <code><i>dim2</i></code> are standard
GrADS dimension expressions whose dimensions must match.
<p>
<h3>Usage Notes</h3>
<p>
<ol>
<li>
Related functions are:
<code><a href="gradfuncmaxloc.html">maxloc</a></code>,
<code><a href="gradfuncmin.html">min</a></code>, and
<code><a href="gradfuncminloc.html">minloc</a></code>. <br>
These functions will only work with GrADS version 1.8 or later.
</ol>
<p>
<h3>Examples</h3>
<ol>
<li>To calculate the maximum value of the <code>precip</code> variable over the lon-lat domain, use nested <code>max</code> functions:
<p>
<code>
d max(max(precip,lon=0,lon=360),lat=-90,lat=90)
</code>
<p>
</body>
</html>
|