Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Compute the mean value over a sub-area rather than over the whole globe. Note that the integrate() function can do this:

Code Block
languagepy
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 number
  • datainfo() - returns information about the number of points and missing values