Exercise 3:

  1. Write a function, which when given a cube, returns True or False depending on whether a cell method exists.
  2. Use this function as a value for the iris.Constraint cube_func keyword, and load the file in iris.sample_data_path('A1B_north_america.nc') such that only cubes with cell methods are loaded (note: in this case, that is all that exists in the file).