@@ -2672,6 +2672,45 @@ CF-netCDF geometry container variable is automatically created, and
26722672the cells encoded with the :ref: `compression <Compression >` techniques
26732673defined in the CF conventions.
26742674
2675+ ----
2676+
2677+ .. _UGRID-mesh-topologies:
2678+
2679+ **UGRID mesh topologies **
2680+ -------------------------
2681+
2682+ A UGRID mesh topology defines the geospatial topology of cells
2683+ arranged in two or three dimensions in real space but indexed by a
2684+ single dimension. It explicitly describes the topological
2685+ relationships between cells, i.e. spatial relationships which do not
2686+ depend on the cell locations, via a mesh of connected nodes. See the
2687+ `domain topology construct `_ and `cell connectivity construct `_
2688+ descriptions in the CF data model (from CF-1.11) for more details,
2689+ including on how the mesh relates to the cells of the domain.
2690+
2691+ .. code-block:: python
2692+ :caption: *Inspect a dataset containing a UGRID mesh topology. *
2693+
2694+ >>> f = cf.example_field(8)
2695+ >>> print(f)
2696+ Field: air_temperature (ncvar%ta)
2697+ ---------------------------------
2698+ Data : air_temperature(time(2), ncdim%nMesh2_face(3)) K
2699+ Cell methods : time(2): point (interval: 3600 s)
2700+ Dimension coords: time(2) = [2016-01-02 01:00:00, 2016-01-02 11:00:00] gregorian
2701+ Auxiliary coords: longitude(ncdim%nMesh2_face(3)) = [-44.0, -44.0, -42.0] degrees_east
2702+ : latitude(ncdim%nMesh2_face(3)) = [34.0, 32.0, 34.0] degrees_north
2703+ Domain Topology : cell:face(ncdim%nMesh2_face(3), 4) = [[2, ..., --]]
2704+ Cell connects : connectivity:edge(ncdim%nMesh2_face(3), 5) = [[0, ..., --]]
2705+
2706+ ..
2707+ COMMENTED OUT UNTIL THIS WORKS! When a field construct containing a
2708+ UGRID mesh topology is written to disk, a CF-netCDF UGRID mesh
2709+ topology variable is automatically created which will be shared by
2710+ any data variables that can make use of the same mesh.
2711+
2712+ ----
2713+
26752714.. _Domain-ancillaries:
26762715
26772716Domain ancillaries
0 commit comments