@@ -68,26 +68,26 @@ represents the output of an low-resolution global atmospheric ``experiment``,
6868.. doctest :: lenient-example
6969
7070 >>> print (experiment)
71- air_potential_temperature / (K) (model_level_number: 15; grid_latitude: 100; grid_longitude: 100)
72- Dimension coordinates:
73- model_level_number x - -
74- grid_latitude - x -
75- grid_longitude - - x
76- Auxiliary coordinates:
77- atmosphere_hybrid_height_coordinate x - -
78- sigma x - -
79- surface_altitude - x x
80- Derived coordinates:
81- altitude x x x
82- Scalar coordinates:
83- forecast_period: 0.0 hours
84- forecast_reference_time: 2009-09-09 17:10:00
85- time: 2009-09-09 17:10:00
86- Attributes:
87- Conventions: CF-1.5
88- STASH: m01s00i004
89- experiment-id: RT3 50
90- source: Data from Met Office Unified Model 7.04
71+ air_potential_temperature / (K) (model_level_number: 15; grid_latitude: 100; grid_longitude: 100)
72+ Dimension coordinates:
73+ model_level_number x - -
74+ grid_latitude - x -
75+ grid_longitude - - x
76+ Auxiliary coordinates:
77+ atmosphere_hybrid_height_coordinate x - -
78+ sigma x - -
79+ surface_altitude - x x
80+ Derived coordinates:
81+ altitude x x x
82+ Scalar coordinates:
83+ forecast_period 0.0 hours
84+ forecast_reference_time 2009-09-09 17:10:00
85+ time 2009-09-09 17:10:00
86+ Attributes:
87+ Conventions CF-1.5
88+ STASH m01s00i004
89+ experiment-id RT3 50
90+ source Data from Met Office Unified Model 7.04
9191
9292Consider also the following :class: `~iris.cube.Cube `, which has the same global
9393spatial extent, and acts as a ``control ``,
@@ -96,41 +96,41 @@ spatial extent, and acts as a ``control``,
9696
9797 >>> print (control)
9898 air_potential_temperature / (K) (grid_latitude: 100; grid_longitude: 100)
99- Dimension coordinates:
100- grid_latitude x -
101- grid_longitude - x
102- Scalar coordinates:
103- model_level_number: 1
104- time: 2009-09-09 17:10:00
105- Attributes:
106- Conventions: CF-1.7
107- STASH: m01s00i004
108- source: Data from Met Office Unified Model 7.04
99+ Dimension coordinates:
100+ grid_latitude x -
101+ grid_longitude - x
102+ Scalar coordinates:
103+ model_level_number 1
104+ time 2009-09-09 17:10:00
105+ Attributes:
106+ Conventions CF-1.7
107+ STASH m01s00i004
108+ source Data from Met Office Unified Model 7.04
109109
110110Now let's subtract these cubes in order to calculate a simple ``difference ``,
111111
112112.. doctest :: lenient-example
113113
114114 >>> difference = experiment - control
115115 >>> print (difference)
116- unknown / (K) (model_level_number: 15; grid_latitude: 100; grid_longitude: 100)
117- Dimension coordinates:
118- model_level_number x - -
119- grid_latitude - x -
120- grid_longitude - - x
121- Auxiliary coordinates:
122- atmosphere_hybrid_height_coordinate x - -
123- sigma x - -
124- surface_altitude - x x
125- Derived coordinates:
126- altitude x x x
127- Scalar coordinates:
128- forecast_period: 0.0 hours
129- forecast_reference_time: 2009-09-09 17:10:00
130- time: 2009-09-09 17:10:00
131- Attributes:
132- experiment-id: RT3 50
133- source: Data from Met Office Unified Model 7.04
116+ unknown / (K) (model_level_number: 15; grid_latitude: 100; grid_longitude: 100)
117+ Dimension coordinates:
118+ model_level_number x - -
119+ grid_latitude - x -
120+ grid_longitude - - x
121+ Auxiliary coordinates:
122+ atmosphere_hybrid_height_coordinate x - -
123+ sigma x - -
124+ surface_altitude - x x
125+ Derived coordinates:
126+ altitude x x x
127+ Scalar coordinates:
128+ forecast_period 0.0 hours
129+ forecast_reference_time 2009-09-09 17:10:00
130+ time 2009-09-09 17:10:00
131+ Attributes:
132+ experiment-id RT3 50
133+ source Data from Met Office Unified Model 7.04
134134
135135Note that, cube maths automatically takes care of broadcasting the
136136dimensionality of the ``control `` up to that of the ``experiment ``, in order to
@@ -204,21 +204,21 @@ time perform **strict** cube maths instead,
204204 ... difference = experiment - control
205205 ...
206206 >>> print (difference)
207- unknown / (K) (model_level_number: 15; grid_latitude: 100; grid_longitude: 100)
208- Dimension coordinates:
209- model_level_number x - -
210- grid_latitude - x -
211- grid_longitude - - x
212- Auxiliary coordinates:
213- atmosphere_hybrid_height_coordinate x - -
214- sigma x - -
215- surface_altitude - x x
216- Derived coordinates:
217- altitude x x x
218- Scalar coordinates:
219- time: 2009-09-09 17:10:00
220- Attributes:
221- source: Data from Met Office Unified Model 7.04
207+ unknown / (K) (model_level_number: 15; grid_latitude: 100; grid_longitude: 100)
208+ Dimension coordinates:
209+ model_level_number x - -
210+ grid_latitude - x -
211+ grid_longitude - - x
212+ Auxiliary coordinates:
213+ atmosphere_hybrid_height_coordinate x - -
214+ sigma x - -
215+ surface_altitude - x x
216+ Derived coordinates:
217+ altitude x x x
218+ Scalar coordinates:
219+ time 2009-09-09 17:10:00
220+ Attributes:
221+ source Data from Met Office Unified Model 7.04
222222
223223Although the numerical result of this strict cube maths operation is identical,
224224it is not as rich in metadata as the :ref: `lenient alternative <lenient example >`.
0 commit comments