@@ -310,7 +310,7 @@ The Basics
310310The Iris :class: `~iris.cube.Cube ` has several new members:
311311
312312* | :attr: `~iris.cube.Cube.mesh `
313- | The :class:`iris.experimental.ugrid.Mesh ` that describes the
313+ | The :class:`iris.experimental.ugrid.MeshXY ` that describes the
314314 :class:`~iris.cube.Cube`\'s horizontal geography.
315315 * | :attr: `~iris.cube.Cube.location `
316316 | ``node``/``edge``/``face`` - the mesh element type with which this
@@ -320,7 +320,7 @@ The Iris :class:`~iris.cube.Cube` has several new members:
320320 indexes over the horizontal :attr:`~iris.cube.Cube.data` positions.
321321
322322These members will all be ``None `` for a :class: `~iris.cube.Cube ` with no
323- associated :class: `~iris.experimental.ugrid.Mesh `.
323+ associated :class: `~iris.experimental.ugrid.MeshXY `.
324324
325325This :class: `~iris.cube.Cube `\' s unstructured dimension has multiple attached
326326:class: `iris.experimental.ugrid.MeshCoord `\s (one for each axis e.g.
@@ -333,7 +333,7 @@ the :class:`~iris.cube.Cube`\'s unstructured dimension.
333333
334334 from iris.coords import AuxCoord, DimCoord
335335 from iris.cube import Cube
336- from iris.experimental.ugrid import Connectivity, Mesh
336+ from iris.experimental.ugrid import Connectivity, MeshXY
337337
338338 node_x = AuxCoord(
339339 points=[0.0, 5.0, 0.0, 5.0, 8.0],
@@ -368,7 +368,7 @@ the :class:`~iris.cube.Cube`\'s unstructured dimension.
368368 ]
369369 return [(x, "x"), (y, "y")]
370370
371- my_mesh = Mesh (
371+ my_mesh = MeshXY (
372372 long_name="my_mesh",
373373 topology_dimension=2,
374374 node_coords_and_axes=[(node_x, "x"), (node_y, "y")],
@@ -416,41 +416,41 @@ the :class:`~iris.cube.Cube`\'s unstructured dimension.
416416 0
417417
418418 >>> print (edge_cube.mesh.summary(shorten = True ))
419- <Mesh : 'my_mesh'>
419+ <MeshXY : 'my_mesh'>
420420
421421The Detail
422422----------
423423How UGRID information is stored
424424~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
425- * | :class: `iris.experimental.ugrid.Mesh `
425+ * | :class: `iris.experimental.ugrid.MeshXY `
426426 | Contains all information about the mesh.
427427 | Includes:
428428
429- * | :attr: `~iris.experimental.ugrid.Mesh .topology_dimension `
429+ * | :attr: `~iris.experimental.ugrid.MeshXY .topology_dimension `
430430 | The maximum dimensionality of shape (1D=edge, 2D=face) supported
431- by this :class:`~iris.experimental.ugrid.Mesh `. Determines which
431+ by this :class:`~iris.experimental.ugrid.MeshXY `. Determines which
432432 :class:`~iris.experimental.ugrid.Connectivity`\s are required/optional
433433 (see below).
434434
435435 * 1-3 collections of :class: `iris.coords.AuxCoord `\s :
436436
437- * | **Required **: :attr: `~iris.experimental.ugrid.Mesh .node_coords `
437+ * | **Required **: :attr: `~iris.experimental.ugrid.MeshXY .node_coords `
438438 | The nodes that are the basis for the mesh.
439- * | Optional: :attr: `~iris.experimental.ugrid.Mesh .edge_coords `,
440- :attr: `~iris.experimental.ugrid.Mesh .face_coords `
439+ * | Optional: :attr: `~iris.experimental.ugrid.MeshXY .edge_coords `,
440+ :attr: `~iris.experimental.ugrid.MeshXY .face_coords `
441441 | For indicating the 'centres' of the edges/faces.
442442 | **NOTE:** generating a :class:`~iris.experimental.ugrid.MeshCoord` from
443- a :class:`~iris.experimental.ugrid.Mesh ` currently (``Jan 2022``)
443+ a :class:`~iris.experimental.ugrid.MeshXY ` currently (``Jan 2022``)
444444 requires centre coordinates for the given ``location``; to be rectified
445445 in future.
446446
447447 * 1 or more :class: `iris.experimental.ugrid.Connectivity `\s :
448448
449449 * | **Required for 1D (edge) elements **:
450- :attr: `~iris.experimental.ugrid.Mesh .edge_node_connectivity `
450+ :attr: `~iris.experimental.ugrid.MeshXY .edge_node_connectivity `
451451 | Define the edges by connecting nodes.
452452 * | **Required for 2D (face) elements **:
453- :attr: `~iris.experimental.ugrid.Mesh .face_node_connectivity `
453+ :attr: `~iris.experimental.ugrid.MeshXY .face_node_connectivity `
454454 | Define the faces by connecting nodes.
455455 * Optional: any other connectivity type. See
456456 :attr: `iris.experimental.ugrid.mesh.Connectivity.UGRID_CF_ROLES ` for the
@@ -459,7 +459,7 @@ How UGRID information is stored
459459.. doctest :: ugrid_summaries
460460
461461 >>> print (edge_cube.mesh)
462- Mesh : 'my_mesh'
462+ MeshXY : 'my_mesh'
463463 topology_dimension: 2
464464 node
465465 node_dimension: 'Mesh2d_node'
@@ -485,7 +485,7 @@ How UGRID information is stored
485485 | Stores the following information:
486486
487487 * | :attr: `~iris.experimental.ugrid.MeshCoord.mesh `
488- | The :class:`~iris.experimental.ugrid.Mesh ` associated with this
488+ | The :class:`~iris.experimental.ugrid.MeshXY ` associated with this
489489 :class:`~iris.experimental.ugrid.MeshCoord`. This determines the
490490 :attr:`~iris.cube.Cube.mesh` attribute of any :class:`~iris.cube.Cube`
491491 this :class:`~iris.experimental.ugrid.MeshCoord` is attached to (see
@@ -503,7 +503,7 @@ How UGRID information is stored
503503
504504MeshCoords
505505~~~~~~~~~~
506- Links a :class: `~iris.cube.Cube ` to a :class: `~iris.experimental.ugrid.Mesh ` by
506+ Links a :class: `~iris.cube.Cube ` to a :class: `~iris.experimental.ugrid.MeshXY ` by
507507attaching to the :class: `~iris.cube.Cube `\' s unstructured dimension, in the
508508same way that all :class: `~iris.coords.Coord `\s attach to
509509:class: `~iris.cube.Cube ` dimensions. This allows a single
@@ -512,30 +512,30 @@ dimensions (e.g. horizontal mesh plus vertical levels and a time series),
512512using the same logic for every dimension.
513513
514514:class: `~iris.experimental.ugrid.MeshCoord `\s are instantiated using a given
515- :class: `~iris.experimental.ugrid.Mesh `, ``location ``
515+ :class: `~iris.experimental.ugrid.MeshXY `, ``location ``
516516("node"/"edge"/"face") and ``axis ``. The process interprets the
517- :class: `~iris.experimental.ugrid.Mesh `\' s
518- :attr: `~iris.experimental.ugrid.Mesh .node_coords ` and if appropriate the
519- :attr: `~iris.experimental.ugrid.Mesh .edge_node_connectivity `/
520- :attr: `~iris.experimental.ugrid.Mesh .face_node_connectivity ` and
521- :attr: `~iris.experimental.ugrid.Mesh .edge_coords `/
522- :attr: `~iris.experimental.ugrid.Mesh .face_coords `
517+ :class: `~iris.experimental.ugrid.MeshXY `\' s
518+ :attr: `~iris.experimental.ugrid.MeshXY .node_coords ` and if appropriate the
519+ :attr: `~iris.experimental.ugrid.MeshXY .edge_node_connectivity `/
520+ :attr: `~iris.experimental.ugrid.MeshXY .face_node_connectivity ` and
521+ :attr: `~iris.experimental.ugrid.MeshXY .edge_coords `/
522+ :attr: `~iris.experimental.ugrid.MeshXY .face_coords `
523523to produce a :class: `~iris.coords.Coord `
524524:attr: `~iris.coords.Coord.points ` and :attr: `~iris.coords.Coord.bounds `
525- representation of all the :class: `~iris.experimental.ugrid.Mesh `\' s
525+ representation of all the :class: `~iris.experimental.ugrid.MeshXY `\' s
526526nodes/edges/faces for the given axis.
527527
528- The method :meth: `iris.experimental.ugrid.Mesh .to_MeshCoords ` is available to
528+ The method :meth: `iris.experimental.ugrid.MeshXY .to_MeshCoords ` is available to
529529create a :class: `~iris.experimental.ugrid.MeshCoord ` for
530- every axis represented by that :class: `~iris.experimental.ugrid.Mesh `,
530+ every axis represented by that :class: `~iris.experimental.ugrid.MeshXY `,
531531given only the ``location `` argument
532532
533533.. doctest :: ugrid_summaries
534534
535535 >>> for coord in edge_cube.coords(mesh_coords = True ):
536536 ... print (coord)
537537 MeshCoord : latitude / (degrees_north)
538- mesh: <Mesh : 'my_mesh'>
538+ mesh: <MeshXY : 'my_mesh'>
539539 location: 'edge'
540540 points: [3. , 1.5, 1.5, 1.5, 0. , 0. ]
541541 bounds: [
@@ -550,7 +550,7 @@ given only the ``location`` argument
550550 standard_name: 'latitude'
551551 axis: 'y'
552552 MeshCoord : longitude / (degrees_east)
553- mesh: <Mesh : 'my_mesh'>
553+ mesh: <MeshXY : 'my_mesh'>
554554 location: 'edge'
555555 points: [2.5, 0. , 5. , 6.5, 2.5, 6.5]
556556 bounds: [
0 commit comments