In [ ]:
%matplotlib inline
In [ ]:
import matplotlib.pyplot as plt
import iris
import iris.plot as iplt
Load 'A1B_north_america.nc' from the Iris sample data.
In [ ]:
# EDIT for user code ...
In [ ]:
# SAMPLE SOLUTION : Un-comment and execute the following to see a possible solution ...
# %load solutions/iris_exercise_8.1
In [ ]:
# user code ...
In [ ]:
# SAMPLE SOLUTION
# %load solutions/iris_exercise_8.2
In [ ]:
# user code ...
In [ ]:
# SAMPLE SOLUTION
# %load solutions/iris_exercise_8.3
Add a "decade" coordinate to the loaded cube using your function and the coord categorisation module.
(Hint: Look at the documentation for iris.coord_categorisation.add_categorised_coord, which can be used to create a new categorised coordinate from such a function.)
In [ ]:
# user code ...
In [ ]:
# SAMPLE SOLUTION
# %load solutions/iris_exercise_8.4
In [ ]:
# user code ...
In [ ]:
# SAMPLE SOLUTION
# %load solutions/iris_exercise_8.5
In [ ]:
# user code ...
In [ ]:
# SAMPLE SOLUTION
# %load solutions/iris_exercise_8.6