Exercise 4

The following exercise is designed to give you experience of identifying why two cubes are not merging. Work is underway to make this identification process more automatic, but the resolution of the identified differences will still be a necessary process.

There are 6 problems, each of which are not merging into a single cube as desired. In no particular order the problems are:

  1. one of the cubes has a history attribute, but the other doesn't
  2. one of the cubes has bounds on the spatial coordinates, but the other doesn't
  3. the two cubes have different time coordinate units
  4. the two cubes have different data dtypes
  5. the two cubes have different long names
  6. the two cubes have different shapes (the data must currently be loaded to correct this)

The files can be found in the repository along with this course in exercises/iris/merge/. There are two files to be loaded for each exercise: merge_exercise.{problem_number}.f1.nc and merge_exercise.{problem_number}.f2.nc.

Identify, and correct, the reason that the two cubes are not merging for all 6 sets of files.

Problem 1