var grid interval minfrac boxAverage
| Arguments | ||
|---|---|---|
| label | type | description |
| var | variable | variable to be averaged |
| grid | grid | grid(s) over which the box average is to be calculated |
| interval | number | width of interval (in units of grid). |
| minfrac | number | Minimum fraction of data that must be present (i.e., fraction not indicated as missing) within the selected domain in order for the box average to be calculated. If minfrac is not present, then a missing value is returned. If minfrac is not given, then the box average is calculated regardless of the amount of data present in domain. (optional) |
| Returns | ||
| avgvar | variable | box average of var, where the non-overlapping intervals are of length interval |
Note: This function should NOT be used with a discontinuous domain like the T grid shown below:
SOURCES .IRI .EPPF .environment .thermocline_depth
T
(Jan-Mar 1950-1998) VALUES
T 3 boxAverage