Versions Compared

Key

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

...

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?

Cheat: the integrate() function can accept an additional argument of a field of 1s and 0s, and will only compute the mean value where this field has 1s. Using this functionality, you can avoid using the bitmap functions altogether, at least in this particular computation! See Fieldset Functions.

The Land-sea mask

Write a line of macro code which will compute the number of land points in the lsm variable. There are two methods:

...