...
Compute the mean value over a sub-area rather than over the whole globe. Note that the integrate()
function can do this:
Code Block | ||
---|---|---|
| ||
europe = [75,-12.5,35,42.5]
x = integrate(field,europe) |
There is another function, average()
, to compute the mean value of a field. Find its documentation to see what the difference is. How different is the result?
...
Write a line of macro code which will compute the number of land points in the lsm
variable. There are two methods:
accumulate()
- adds all the values in a field to return a single numberdatainfo()
- returns information about the number of points and missing values