diff --git a/.buildinfo b/.buildinfo index 8048b087a..35d95eda4 100644 --- a/.buildinfo +++ b/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 8d20069a5ad17e464a276db66857ed03 +config: 4d98c0a32dca65a16f68eb1fcde32261 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/.doctrees/environment.pickle b/.doctrees/environment.pickle index 69ef5e67b..d03abc31a 100644 Binary files a/.doctrees/environment.pickle and b/.doctrees/environment.pickle differ diff --git a/.doctrees/examples-dev/sg_execution_times.doctree b/.doctrees/examples-dev/sg_execution_times.doctree index b22428b5c..343b3f536 100644 Binary files a/.doctrees/examples-dev/sg_execution_times.doctree and b/.doctrees/examples-dev/sg_execution_times.doctree differ diff --git a/.doctrees/examples-dev/voronoi.doctree b/.doctrees/examples-dev/voronoi.doctree index e0ed2579b..131c3a3f4 100644 Binary files a/.doctrees/examples-dev/voronoi.doctree and b/.doctrees/examples-dev/voronoi.doctree differ diff --git a/.doctrees/examples/connectivity.doctree b/.doctrees/examples/connectivity.doctree index 8603a8b3e..6010e4966 100644 Binary files a/.doctrees/examples/connectivity.doctree and b/.doctrees/examples/connectivity.doctree differ diff --git a/.doctrees/examples/overlap_regridder.doctree b/.doctrees/examples/overlap_regridder.doctree index e2da143d8..4f072a9b8 100644 Binary files a/.doctrees/examples/overlap_regridder.doctree and b/.doctrees/examples/overlap_regridder.doctree differ diff --git a/.doctrees/examples/partitioning.doctree b/.doctrees/examples/partitioning.doctree index 584b213cd..bafb48394 100644 Binary files a/.doctrees/examples/partitioning.doctree and b/.doctrees/examples/partitioning.doctree differ diff --git a/.doctrees/examples/plotting.doctree b/.doctrees/examples/plotting.doctree index 92166bb85..cdcae3d05 100644 Binary files a/.doctrees/examples/plotting.doctree and b/.doctrees/examples/plotting.doctree differ diff --git a/.doctrees/examples/quick_overview.doctree b/.doctrees/examples/quick_overview.doctree index fb306c84c..e4e31c09e 100644 Binary files a/.doctrees/examples/quick_overview.doctree and b/.doctrees/examples/quick_overview.doctree differ diff --git a/.doctrees/examples/regridder_overview.doctree b/.doctrees/examples/regridder_overview.doctree index e7cc320ea..51c401908 100644 Binary files a/.doctrees/examples/regridder_overview.doctree and b/.doctrees/examples/regridder_overview.doctree differ diff --git a/.doctrees/examples/selection.doctree b/.doctrees/examples/selection.doctree index a4a503bed..c37109b5f 100644 Binary files a/.doctrees/examples/selection.doctree and b/.doctrees/examples/selection.doctree differ diff --git a/.doctrees/examples/sg_execution_times.doctree b/.doctrees/examples/sg_execution_times.doctree index 1deb24d7f..cd7c35a9e 100644 Binary files a/.doctrees/examples/sg_execution_times.doctree and b/.doctrees/examples/sg_execution_times.doctree differ diff --git a/.doctrees/examples/vector_conversion.doctree b/.doctrees/examples/vector_conversion.doctree index d0c4a068e..1b32947ad 100644 Binary files a/.doctrees/examples/vector_conversion.doctree and b/.doctrees/examples/vector_conversion.doctree differ diff --git a/.doctrees/sample_data/adh_san_diego.doctree b/.doctrees/sample_data/adh_san_diego.doctree index b2af6213e..c550293a5 100644 Binary files a/.doctrees/sample_data/adh_san_diego.doctree and b/.doctrees/sample_data/adh_san_diego.doctree differ diff --git a/.doctrees/sample_data/disk.doctree b/.doctrees/sample_data/disk.doctree index 99473b0e4..019f21fd2 100644 Binary files a/.doctrees/sample_data/disk.doctree and b/.doctrees/sample_data/disk.doctree differ diff --git a/.doctrees/sample_data/elevation_nl.doctree b/.doctrees/sample_data/elevation_nl.doctree index 7f7cb8b34..47119365b 100644 Binary files a/.doctrees/sample_data/elevation_nl.doctree and b/.doctrees/sample_data/elevation_nl.doctree differ diff --git a/.doctrees/sample_data/provinces_nl.doctree b/.doctrees/sample_data/provinces_nl.doctree index 76a243133..7b5895612 100644 Binary files a/.doctrees/sample_data/provinces_nl.doctree and b/.doctrees/sample_data/provinces_nl.doctree differ diff --git a/.doctrees/sample_data/sg_execution_times.doctree b/.doctrees/sample_data/sg_execution_times.doctree index 5d9987e86..869295028 100644 Binary files a/.doctrees/sample_data/sg_execution_times.doctree and b/.doctrees/sample_data/sg_execution_times.doctree differ diff --git a/.doctrees/sample_data/xoxo.doctree b/.doctrees/sample_data/xoxo.doctree index a30eb7b2c..9cdacc3a2 100644 Binary files a/.doctrees/sample_data/xoxo.doctree and b/.doctrees/sample_data/xoxo.doctree differ diff --git a/_modules/xugrid/ugrid/ugrid2d.html b/_modules/xugrid/ugrid/ugrid2d.html index fb7443331..020c47d8e 100644 --- a/_modules/xugrid/ugrid/ugrid2d.html +++ b/_modules/xugrid/ugrid/ugrid2d.html @@ -2482,10 +2482,16 @@

Source code for xugrid.ugrid.ugrid2d

         # Allocate face_node_connectivity
         face_nodes = np.empty((ny * nx, 4), dtype=IntDType)
         # Set connectivity in counterclockwise manner
-        face_nodes[:, 0] = linear_index[:-1, 1:].ravel()  # upper right
-        face_nodes[:, 1] = linear_index[:-1, :-1].ravel()  # upper left
-        face_nodes[:, 2] = linear_index[1:, :-1].ravel()  # lower left
-        face_nodes[:, 3] = linear_index[1:, 1:].ravel()  # lower right
+        left, right = slice(None, -1), slice(1, None)
+        lower, upper = slice(None, -1), slice(1, None)
+        if node_x[1] < node_x[0]:  # x_decreasing
+            left, right = right, left
+        if node_y[ny + 1] < node_y[0]:  # y_decreasing
+            lower, upper = upper, lower
+        face_nodes[:, 0] = linear_index[lower, left].ravel()
+        face_nodes[:, 1] = linear_index[lower, right].ravel()
+        face_nodes[:, 2] = linear_index[upper, right].ravel()
+        face_nodes[:, 3] = linear_index[upper, left].ravel()
         return Ugrid2d(node_x, node_y, -1, face_nodes)
 
 
diff --git a/_sources/examples-dev/sg_execution_times.rst.txt b/_sources/examples-dev/sg_execution_times.rst.txt index d60fbfb81..98628e23c 100644 --- a/_sources/examples-dev/sg_execution_times.rst.txt +++ b/_sources/examples-dev/sg_execution_times.rst.txt @@ -6,8 +6,8 @@ Computation times ================= -**00:01.305** total execution time for **examples-dev** files: +**00:01.224** total execution time for **examples-dev** files: +----------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples-dev_voronoi.py` (``voronoi.py``) | 00:01.305 | 0.0 MB | +| :ref:`sphx_glr_examples-dev_voronoi.py` (``voronoi.py``) | 00:01.224 | 0.0 MB | +----------------------------------------------------------+-----------+--------+ diff --git a/_sources/examples-dev/voronoi.rst.txt b/_sources/examples-dev/voronoi.rst.txt index c83900a11..b75a0922b 100644 --- a/_sources/examples-dev/voronoi.rst.txt +++ b/_sources/examples-dev/voronoi.rst.txt @@ -630,7 +630,7 @@ The figure shows: .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 1.305 seconds) + **Total running time of the script:** (0 minutes 1.224 seconds) .. _sphx_glr_download_examples-dev_voronoi.py: diff --git a/_sources/examples/connectivity.rst.txt b/_sources/examples/connectivity.rst.txt index ac3a339dd..8b1dfe976 100644 --- a/_sources/examples/connectivity.rst.txt +++ b/_sources/examples/connectivity.rst.txt @@ -129,7 +129,7 @@ By default, the border value for binary erosion is set to ``False`` (equal to .. code-block:: none - + @@ -165,7 +165,7 @@ start by setting a single value in the center of the grid to ``True``. .. code-block:: none - + @@ -200,7 +200,7 @@ alternative border value: .. code-block:: none - + @@ -238,7 +238,7 @@ analyse connected parts of the mesh. .. code-block:: none - + @@ -272,7 +272,7 @@ Tesselation. .. code-block:: none - + @@ -316,7 +316,7 @@ the original. .. code-block:: none - + @@ -355,7 +355,7 @@ We can break down one of the Voronoi tesselations from above into triangles: .. code-block:: none - + @@ -409,7 +409,7 @@ the upper and lower parts: .. code-block:: none - + @@ -439,7 +439,7 @@ We can now use Laplace interpolation to fill the gaps in the grid. .. code-block:: none - + @@ -477,7 +477,7 @@ interpolation. .. code-block:: none - + @@ -518,7 +518,7 @@ To illustrate, let's take a look at the connectivity matrix of the Xoxo grid. .. code-block:: none - + @@ -554,14 +554,14 @@ locality: .. code-block:: none - + .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 1.665 seconds) + **Total running time of the script:** (0 minutes 1.659 seconds) .. _sphx_glr_download_examples_connectivity.py: diff --git a/_sources/examples/overlap_regridder.rst.txt b/_sources/examples/overlap_regridder.rst.txt index fec47c4cd..66929fafe 100644 --- a/_sources/examples/overlap_regridder.rst.txt +++ b/_sources/examples/overlap_regridder.rst.txt @@ -112,7 +112,7 @@ some bathymetry) of the Netherlands, and a coarser target grid. .. code-block:: none - + @@ -202,7 +202,7 @@ conservative methods, such as conductance: .. code-block:: none - + @@ -280,7 +280,7 @@ To use our custom method, we provide at initialization of the OverlapRegridder: .. code-block:: none - + @@ -320,7 +320,7 @@ function can deal with NaN values! -- hence ``nanpercentile`` rather than .. code-block:: none - + @@ -331,7 +331,7 @@ function can deal with NaN values! -- hence ``nanpercentile`` rather than .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 3.981 seconds) + **Total running time of the script:** (0 minutes 4.012 seconds) .. _sphx_glr_download_examples_overlap_regridder.py: diff --git a/_sources/examples/partitioning.rst.txt b/_sources/examples/partitioning.rst.txt index 554145828..de9f72d09 100644 --- a/_sources/examples/partitioning.rst.txt +++ b/_sources/examples/partitioning.rst.txt @@ -76,7 +76,7 @@ into several parts. .. code-block:: none - + @@ -145,7 +145,7 @@ We can easily plot this data to visualize the partitions: .. code-block:: none - + @@ -213,7 +213,7 @@ merge these partitions back into one whole for post-processing: .. code-block:: none - + @@ -275,7 +275,7 @@ data: .. code-block:: none - + @@ -667,7 +667,7 @@ Note that partioning and merging does not preserve order!
<xarray.DataArray 'elevation' (mesh2d_nFaces: 5248)>
     array([False, False, False, ..., False, False, False])
     Coordinates:
-      * mesh2d_nFaces  (mesh2d_nFaces) int64 0 1 2 3 4 ... 5243 5244 5245 5246 5247
+ * mesh2d_nFaces (mesh2d_nFaces) int64 0 1 2 3 4 ... 5243 5244 5245 5246 5247


@@ -1066,9 +1066,9 @@ original topology. ``reindex_like`` looks at the coordinates of both Coordinates: mesh2d_face_x (mesh2d_nFaces) float64 2.388e+04 1.86e+05 ... 3.03e+04 mesh2d_face_y (mesh2d_nFaces) float64 3.648e+05 4.171e+05 ... 3.964e+05 - * mesh2d_nFaces (mesh2d_nFaces) int64 0 1 2 3 4 ... 5243 5244 5245 5246 5247 + * mesh2d_nFaces (mesh2d_nFaces) int64 0 1 2 3 4 ... 5243 5244 5245 5246 5247

@@ -1470,9 +1470,9 @@ reorder the data after merging. Coordinates: mesh2d_face_x (mesh2d_nFaces) float64 2.388e+04 1.86e+05 ... 3.03e+04 mesh2d_face_y (mesh2d_nFaces) float64 3.648e+05 4.171e+05 ... 3.964e+05 - * mesh2d_nFaces (mesh2d_nFaces) int64 0 1 2 3 4 ... 5243 5244 5245 5246 5247 + * mesh2d_nFaces (mesh2d_nFaces) int64 0 1 2 3 4 ... 5243 5244 5245 5246 5247

@@ -1489,7 +1489,7 @@ partitions. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 3.901 seconds) + **Total running time of the script:** (0 minutes 3.911 seconds) .. _sphx_glr_download_examples_partitioning.py: diff --git a/_sources/examples/plotting.rst.txt b/_sources/examples/plotting.rst.txt index a73b82b44..835d1ebb5 100644 --- a/_sources/examples/plotting.rst.txt +++ b/_sources/examples/plotting.rst.txt @@ -450,13 +450,13 @@ faces.
<xarray.Dataset>
     Dimensions:        (mesh2d_nNodes: 217, mesh2d_nFaces: 384, mesh2d_nEdges: 600)
     Coordinates:
-      * mesh2d_nFaces  (mesh2d_nFaces) int64 0 1 2 3 4 5 ... 378 379 380 381 382 383
-      * mesh2d_nEdges  (mesh2d_nEdges) int64 0 1 2 3 4 5 ... 594 595 596 597 598 599
       * mesh2d_nNodes  (mesh2d_nNodes) int64 0 1 2 3 4 5 ... 211 212 213 214 215 216
+      * mesh2d_nEdges  (mesh2d_nEdges) int64 0 1 2 3 4 5 ... 594 595 596 597 598 599
+      * mesh2d_nFaces  (mesh2d_nFaces) int64 0 1 2 3 4 5 ... 378 379 380 381 382 383
     Data variables:
         node_z         (mesh2d_nNodes) float64 1.933 2.091 1.875 ... 5.688 7.491
         face_z         (mesh2d_nFaces) float64 1.737 1.918 2.269 ... 5.408 6.424
-        edge_z         (mesh2d_nEdges) float64 1.989 1.875 1.8 ... 3.929 4.909 6.544


  • @@ -611,7 +611,7 @@ Dataset and calling the :py:meth:`UgridDataArray.ugrid.plot()` method. .. code-block:: none - + @@ -646,7 +646,7 @@ the edges results in a different kind of plot: .. code-block:: none - + @@ -688,7 +688,7 @@ We can put them side by side to illustrate the differences: .. code-block:: none - + @@ -718,7 +718,7 @@ filled contours for data associated with the face dimension: .. code-block:: none - + @@ -749,7 +749,7 @@ We can also overlay this data with the edges: .. code-block:: none - + @@ -824,7 +824,7 @@ All these (2D) plots are illustrated here for completeness' sake: .. code-block:: none - + @@ -857,7 +857,7 @@ The ``surface`` methods generate 3D surface plots: .. code-block:: none - + @@ -891,7 +891,7 @@ used: .. code-block:: none - + @@ -927,7 +927,7 @@ take an xarray DataArray and a xugrid grid as arguments. .. code-block:: none - + @@ -963,14 +963,14 @@ somewhere in the unstructured topology, and plot the resulting timeseries: .. code-block:: none - [] + [] .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 11.610 seconds) + **Total running time of the script:** (0 minutes 11.432 seconds) .. _sphx_glr_download_examples_plotting.py: diff --git a/_sources/examples/quick_overview.rst.txt b/_sources/examples/quick_overview.rst.txt index 318bb2159..7ba2e0382 100644 --- a/_sources/examples/quick_overview.rst.txt +++ b/_sources/examples/quick_overview.rst.txt @@ -464,7 +464,7 @@ We'll start by fetching a dataset: elevation (node) float64 ... depth (time, node) float64 ... mesh2d int32 ... - face_node_connectivity (face, nmax_face) float64 ...


  • @@ -919,7 +919,7 @@ separate the variables: * node (node) int64 0 1 2 3 4 5 6 ... 9133 9134 9135 9136 9137 9138 9139 Data variables: elevation (node) float64 ... - depth (time, node) float64 ...


  • @@ -1361,7 +1361,7 @@ We can then grab one of the data variables as usual for xarray: Coordinates: node_x (node) float64 ... node_y (node) float64 ... - * node (node) int64 0 1 2 3 4 5 6 7 ... 9133 9134 9135 9136 9137 9138 9139 + * node (node) int64 0 1 2 3 4 5 6 7 ... 9133 9134 9135 9136 9137 9138 9139

    @@ -1771,7 +1771,7 @@ some data by hand here:
    <xarray.DataArray (mesh2d_nFaces: 2)>
         array([1., 2.])
         Coordinates:
    -      * mesh2d_nFaces  (mesh2d_nFaces) int64 0 1
    + * mesh2d_nFaces (mesh2d_nFaces) int64 0 1

    @@ -1809,7 +1809,7 @@ Plotting .. code-block:: none - + @@ -1860,7 +1860,7 @@ To select based on the topology, use the ``.ugrid`` attribute: .. code-block:: none - + @@ -2258,7 +2258,7 @@ Computation on DataArrays is unchanged from xarray:
    <xarray.DataArray (mesh2d_nFaces: 2)>
         array([11., 12.])
         Coordinates:
    -      * mesh2d_nFaces  (mesh2d_nFaces) int64 0 1
    + * mesh2d_nFaces (mesh2d_nFaces) int64 0 1

    @@ -2720,7 +2720,7 @@ Conversion from Geopandas is easy too: Coordinates: * mesh2d_nFaces (mesh2d_nFaces) int64 0 1 Data variables: - test (mesh2d_nFaces) float64 1.0 2.0 + test (mesh2d_nFaces) float64 1.0 2.0

    @@ -3116,13 +3116,13 @@ grid (nodes, faces, edges).
    <xarray.Dataset>
         Dimensions:        (mesh2d_nNodes: 217, mesh2d_nFaces: 384, mesh2d_nEdges: 600)
         Coordinates:
    -      * mesh2d_nFaces  (mesh2d_nFaces) int64 0 1 2 3 4 5 ... 378 379 380 381 382 383
    -      * mesh2d_nEdges  (mesh2d_nEdges) int64 0 1 2 3 4 5 ... 594 595 596 597 598 599
           * mesh2d_nNodes  (mesh2d_nNodes) int64 0 1 2 3 4 5 ... 211 212 213 214 215 216
    +      * mesh2d_nEdges  (mesh2d_nEdges) int64 0 1 2 3 4 5 ... 594 595 596 597 598 599
    +      * mesh2d_nFaces  (mesh2d_nFaces) int64 0 1 2 3 4 5 ... 378 379 380 381 382 383
         Data variables:
             node_z         (mesh2d_nNodes) float64 1.933 2.091 1.875 ... 5.688 7.491
             face_z         (mesh2d_nFaces) float64 1.737 1.918 2.269 ... 5.408 6.424
    -        edge_z         (mesh2d_nEdges) float64 1.989 1.875 1.8 ... 3.929 4.909 6.544
    • mesh2d_nNodes
      PandasIndex
      PandasIndex(RangeIndex(start=0, stop=217, step=1, name='mesh2d_nNodes'))
    • mesh2d_nEdges
      PandasIndex
      PandasIndex(RangeIndex(start=0, stop=600, step=1, name='mesh2d_nEdges'))
    • mesh2d_nFaces
      PandasIndex
      PandasIndex(RangeIndex(start=0, stop=384, step=1, name='mesh2d_nFaces'))


  • @@ -3634,7 +3634,7 @@ a grid object:
    <xarray.Dataset>
         Dimensions:  ()
         Data variables:
    -        *empty*
    + *empty*

    @@ -4029,7 +4029,7 @@ We can then add variables one-by-one, as we might with an xarray Dataset: node_y (node) float64 ... * node (node) int64 0 1 2 3 4 5 6 ... 9133 9134 9135 9136 9137 9138 9139 Data variables: - elevation (node) float64 ... + elevation (node) float64 ...

    @@ -4434,7 +4434,7 @@ before writing. elevation (node) float64 ... depth (time, node) float64 ... Attributes: - Conventions: CF-1.9 UGRID-1.0
  • Conventions :
    CF-1.9 UGRID-1.0


  • @@ -4495,7 +4495,7 @@ before writing. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 0.555 seconds) + **Total running time of the script:** (0 minutes 0.551 seconds) .. _sphx_glr_download_examples_quick_overview.py: diff --git a/_sources/examples/regridder_overview.rst.txt b/_sources/examples/regridder_overview.rst.txt index d37b2d7e4..6da34cbf3 100644 --- a/_sources/examples/regridder_overview.rst.txt +++ b/_sources/examples/regridder_overview.rst.txt @@ -79,7 +79,7 @@ elevation of the Netherlands. .. code-block:: none - + @@ -151,7 +151,7 @@ the centroids of the new grid fall. .. code-block:: none - + @@ -182,7 +182,7 @@ Rexgrid provides the CentroidLocatorRegridder for this: .. code-block:: none - + @@ -217,7 +217,7 @@ so large. Let's try the OverlapOverregridder instead. .. code-block:: none - + @@ -249,7 +249,7 @@ Let's try again, now with the minimum: .. code-block:: none - + @@ -280,7 +280,7 @@ Or the maximum: .. code-block:: none - + @@ -709,7 +709,7 @@ result. mesh2d_face_x (mesh2d_nFaces) float64 ... mesh2d_face_y (mesh2d_nFaces) float64 ... * layer (layer) int64 1 2 3 4 5 - * mesh2d_nFaces (mesh2d_nFaces) int64 0 1 2 3 4 ... 5243 5244 5245 5246 5247
    • mesh2d_face_x
      (mesh2d_nFaces)
      float64
      ...
      standard_name :
      projection_x_coordinate
      [5248 values with dtype=float64]
    • mesh2d_face_y
      (mesh2d_nFaces)
      float64
      ...
      standard_name :
      projection_y_coordinate
      [5248 values with dtype=float64]
    • layer
      (layer)
      int64
      1 2 3 4 5
      array([1, 2, 3, 4, 5])
    • mesh2d_nFaces
      (mesh2d_nFaces)
      int64
      0 1 2 3 4 ... 5244 5245 5246 5247
      array([   0,    1,    2, ..., 5245, 5246, 5247])
    • layer
      PandasIndex
      PandasIndex(Index([1, 2, 3, 4, 5], dtype='int64', name='layer'))
    • mesh2d_nFaces
      PandasIndex
      PandasIndex(RangeIndex(start=0, stop=5248, step=1, name='mesh2d_nFaces'))


  • @@ -1151,7 +1151,7 @@ all additional dimensions. -45.92794405, -39.50867478]]) Coordinates: * layer (layer) int64 1 2 3 4 5 - * mesh2d_nFaces (mesh2d_nFaces) int64 0 1 2 3 4 5 6 ... 91 92 93 94 95 96 97
    • layer
      PandasIndex
      PandasIndex(Index([1, 2, 3, 4, 5], dtype='int64', name='layer'))
    • mesh2d_nFaces
      PandasIndex
      PandasIndex(RangeIndex(start=0, stop=98, step=1, name='mesh2d_nFaces'))


  • @@ -1233,7 +1233,7 @@ and the aggregated mean. .. code-block:: none - [, , , , ] + [, , , , ] @@ -1270,7 +1270,7 @@ To illustrate, we will zoom in to a part of the Netherlands. .. code-block:: none - + @@ -1323,7 +1323,7 @@ the triangles. .. code-block:: none - + @@ -1364,7 +1364,7 @@ the regridders work for any collection of (convex) faces. .. code-block:: none - + @@ -1400,7 +1400,7 @@ is kept the same. .. code-block:: none - + @@ -1416,7 +1416,7 @@ is kept the same. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 8.056 seconds) + **Total running time of the script:** (0 minutes 8.067 seconds) .. _sphx_glr_download_examples_regridder_overview.py: diff --git a/_sources/examples/selection.rst.txt b/_sources/examples/selection.rst.txt index c16bff90c..b86127185 100644 --- a/_sources/examples/selection.rst.txt +++ b/_sources/examples/selection.rst.txt @@ -85,7 +85,7 @@ elevation of the Netherlands. .. code-block:: none - + @@ -130,7 +130,7 @@ A subset of the unstructured grid is returned by using slices without a step: .. code-block:: none - + @@ -161,7 +161,7 @@ In such a case the entire grid is returned. .. code-block:: none - + @@ -196,7 +196,7 @@ This means we can easily select along a single dimension: .. code-block:: none - + @@ -226,7 +226,7 @@ Or, using ``None`` if we only care about the start: .. code-block:: none - + @@ -660,7 +660,7 @@ Two values will select a point: mesh2d_x (mesh2d_nFaces) float64 1.5e+05 mesh2d_y (mesh2d_nFaces) float64 4.63e+05 Attributes: - unit: m NAP + unit: m NAP

    @@ -1066,7 +1066,7 @@ of six points: mesh2d_x (mesh2d_nFaces) float64 1.25e+05 1.5e+05 ... 1.5e+05 1.75e+05 mesh2d_y (mesh2d_nFaces) float64 4e+05 4e+05 ... 4.65e+05 4.65e+05 Attributes: - unit: m NAP + unit: m NAP

    @@ -1472,7 +1472,7 @@ To select points without broadcasting, use ``.ugrid.sel_points`` instead: mesh2d_x (mesh2d_nFaces) float64 1.25e+05 1.5e+05 1.75e+05 mesh2d_y (mesh2d_nFaces) float64 4e+05 4.3e+05 4.65e+05 Attributes: - unit: m NAP + unit: m NAP

    @@ -1876,9 +1876,9 @@ We can sample points along a line as well by providing slices **with** a step: mesh2d_x (mesh2d_nFaces) float64 1e+05 1.1e+05 ... 1.8e+05 1.9e+05 mesh2d_y (mesh2d_nFaces) float64 4.65e+05 4.65e+05 ... 4.65e+05 Attributes: - unit: m NAP + unit: m NAP

    @@ -2284,7 +2284,7 @@ Two slices with a step results in broadcasting: mesh2d_x (mesh2d_nFaces) float64 1e+05 1.1e+05 ... 1.8e+05 1.9e+05 mesh2d_y (mesh2d_nFaces) float64 4e+05 4e+05 4e+05 ... 4.9e+05 4.9e+05 Attributes: - unit: m NAP
  • unit :
    m NAP


  • @@ -2738,15 +2738,15 @@ As well as a slice with a step and multiple values: mesh2d_x (mesh2d_nFaces) float64 1e+05 1.1e+05 ... 1.8e+05 1.9e+05 mesh2d_y (mesh2d_nFaces) float64 4e+05 4e+05 4e+05 ... 4.3e+05 4.3e+05 Attributes: - unit: m NAP
  • unit :
    m NAP


  • @@ -2930,7 +2930,7 @@ thousands faces: .. code-block:: none - + @@ -2952,7 +2952,7 @@ face dimension for 2D topologies. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 3.982 seconds) + **Total running time of the script:** (0 minutes 3.967 seconds) .. _sphx_glr_download_examples_selection.py: diff --git a/_sources/examples/sg_execution_times.rst.txt b/_sources/examples/sg_execution_times.rst.txt index d23bfd7b2..9e5230938 100644 --- a/_sources/examples/sg_execution_times.rst.txt +++ b/_sources/examples/sg_execution_times.rst.txt @@ -6,22 +6,22 @@ Computation times ================= -**00:49.972** total execution time for **examples** files: +**00:49.249** total execution time for **examples** files: +----------------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples_vector_conversion.py` (``vector_conversion.py``) | 00:16.223 | 0.0 MB | +| :ref:`sphx_glr_examples_vector_conversion.py` (``vector_conversion.py``) | 00:15.650 | 0.0 MB | +----------------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples_plotting.py` (``plotting.py``) | 00:11.610 | 0.0 MB | +| :ref:`sphx_glr_examples_plotting.py` (``plotting.py``) | 00:11.432 | 0.0 MB | +----------------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples_regridder_overview.py` (``regridder_overview.py``) | 00:08.056 | 0.0 MB | +| :ref:`sphx_glr_examples_regridder_overview.py` (``regridder_overview.py``) | 00:08.067 | 0.0 MB | +----------------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples_selection.py` (``selection.py``) | 00:03.982 | 0.0 MB | +| :ref:`sphx_glr_examples_overlap_regridder.py` (``overlap_regridder.py``) | 00:04.012 | 0.0 MB | +----------------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples_overlap_regridder.py` (``overlap_regridder.py``) | 00:03.981 | 0.0 MB | +| :ref:`sphx_glr_examples_selection.py` (``selection.py``) | 00:03.967 | 0.0 MB | +----------------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples_partitioning.py` (``partitioning.py``) | 00:03.901 | 0.0 MB | +| :ref:`sphx_glr_examples_partitioning.py` (``partitioning.py``) | 00:03.911 | 0.0 MB | +----------------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples_connectivity.py` (``connectivity.py``) | 00:01.665 | 0.0 MB | +| :ref:`sphx_glr_examples_connectivity.py` (``connectivity.py``) | 00:01.659 | 0.0 MB | +----------------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_examples_quick_overview.py` (``quick_overview.py``) | 00:00.555 | 0.0 MB | +| :ref:`sphx_glr_examples_quick_overview.py` (``quick_overview.py``) | 00:00.551 | 0.0 MB | +----------------------------------------------------------------------------+-----------+--------+ diff --git a/_sources/examples/vector_conversion.rst.txt b/_sources/examples/vector_conversion.rst.txt index 1176171e0..a9b936af6 100644 --- a/_sources/examples/vector_conversion.rst.txt +++ b/_sources/examples/vector_conversion.rst.txt @@ -73,7 +73,7 @@ We'll once again use the surface elevation data example. .. code-block:: none - + @@ -518,9 +518,9 @@ GeoDataFrame. Data variables: elevation (mesh2d_nFaces) float32 1.17 9.81 54.04 ... 0.28 -15.83 -0.45 mesh2d_face_x (mesh2d_nFaces) float64 2.388e+04 1.86e+05 ... 3.03e+04 - mesh2d_face_y (mesh2d_nFaces) float64 3.648e+05 4.171e+05 ... 3.964e+05 + mesh2d_face_y (mesh2d_nFaces) float64 3.648e+05 4.171e+05 ... 3.964e+05

    @@ -582,7 +582,7 @@ burn into the grid. .. code-block:: none - + @@ -978,9 +978,9 @@ we want to compute the average surface elevation per province: Coordinates: * id (id) float64 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0 Attributes: - unit: m NAP
    • id
      (id)
      float64
      0.0 1.0 2.0 3.0 ... 9.0 10.0 11.0
      array([ 0.,  1.,  2.,  3.,  4.,  5.,  6.,  7.,  8.,  9., 10., 11.])
    • id
      PandasIndex
      PandasIndex(Index([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0], dtype='float64', name='id'))
  • unit :
    m NAP


  • @@ -1087,7 +1087,7 @@ We can also use such "masks" to e.g. modify specific parts of the grid data: .. code-block:: none - + @@ -1233,7 +1233,7 @@ burn operation. .. code-block:: none - + @@ -1342,7 +1342,7 @@ compare to the grid faces. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 16.223 seconds) + **Total running time of the script:** (0 minutes 15.650 seconds) .. _sphx_glr_download_examples_vector_conversion.py: diff --git a/_sources/sample_data/adh_san_diego.rst.txt b/_sources/sample_data/adh_san_diego.rst.txt index 3554855e0..4d79c54f2 100644 --- a/_sources/sample_data/adh_san_diego.rst.txt +++ b/_sources/sample_data/adh_san_diego.rst.txt @@ -41,7 +41,7 @@ It contains a static dataset (bed elevation) and a time varying dataset .. code-block:: none - + @@ -71,7 +71,7 @@ It contains a static dataset (bed elevation) and a time varying dataset .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 0.325 seconds) + **Total running time of the script:** (0 minutes 0.318 seconds) .. _sphx_glr_download_sample_data_adh_san_diego.py: diff --git a/_sources/sample_data/disk.rst.txt b/_sources/sample_data/disk.rst.txt index 842fc0214..2406b2302 100644 --- a/_sources/sample_data/disk.rst.txt +++ b/_sources/sample_data/disk.rst.txt @@ -39,7 +39,7 @@ of a disk. It contains data on the nodes, faces, and edges. .. code-block:: none - + @@ -68,7 +68,7 @@ of a disk. It contains data on the nodes, faces, and edges. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 0.163 seconds) + **Total running time of the script:** (0 minutes 0.162 seconds) .. _sphx_glr_download_sample_data_disk.py: diff --git a/_sources/sample_data/elevation_nl.rst.txt b/_sources/sample_data/elevation_nl.rst.txt index c0c53e9fb..d01c9bd23 100644 --- a/_sources/sample_data/elevation_nl.rst.txt +++ b/_sources/sample_data/elevation_nl.rst.txt @@ -39,7 +39,7 @@ of the Netherlands. .. code-block:: none - [] + [] @@ -67,7 +67,7 @@ of the Netherlands. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 0.812 seconds) + **Total running time of the script:** (0 minutes 0.803 seconds) .. _sphx_glr_download_sample_data_elevation_nl.py: diff --git a/_sources/sample_data/provinces_nl.rst.txt b/_sources/sample_data/provinces_nl.rst.txt index b5b37f92f..de579e06a 100644 --- a/_sources/sample_data/provinces_nl.rst.txt +++ b/_sources/sample_data/provinces_nl.rst.txt @@ -58,7 +58,7 @@ Netherlands, including water, presented as geopandas GeoDataFrame. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 0.085 seconds) + **Total running time of the script:** (0 minutes 0.084 seconds) .. _sphx_glr_download_sample_data_provinces_nl.py: diff --git a/_sources/sample_data/sg_execution_times.rst.txt b/_sources/sample_data/sg_execution_times.rst.txt index 87f1c5b29..cdf2777ba 100644 --- a/_sources/sample_data/sg_execution_times.rst.txt +++ b/_sources/sample_data/sg_execution_times.rst.txt @@ -6,16 +6,16 @@ Computation times ================= -**00:01.452** total execution time for **sample_data** files: +**00:01.433** total execution time for **sample_data** files: +---------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_sample_data_elevation_nl.py` (``elevation_nl.py``) | 00:00.812 | 0.0 MB | +| :ref:`sphx_glr_sample_data_elevation_nl.py` (``elevation_nl.py``) | 00:00.803 | 0.0 MB | +---------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_sample_data_adh_san_diego.py` (``adh_san_diego.py``) | 00:00.325 | 0.0 MB | +| :ref:`sphx_glr_sample_data_adh_san_diego.py` (``adh_san_diego.py``) | 00:00.318 | 0.0 MB | +---------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_sample_data_disk.py` (``disk.py``) | 00:00.163 | 0.0 MB | +| :ref:`sphx_glr_sample_data_disk.py` (``disk.py``) | 00:00.162 | 0.0 MB | +---------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_sample_data_provinces_nl.py` (``provinces_nl.py``) | 00:00.085 | 0.0 MB | +| :ref:`sphx_glr_sample_data_provinces_nl.py` (``provinces_nl.py``) | 00:00.084 | 0.0 MB | +---------------------------------------------------------------------+-----------+--------+ -| :ref:`sphx_glr_sample_data_xoxo.py` (``xoxo.py``) | 00:00.067 | 0.0 MB | +| :ref:`sphx_glr_sample_data_xoxo.py` (``xoxo.py``) | 00:00.066 | 0.0 MB | +---------------------------------------------------------------------+-----------+--------+ diff --git a/_sources/sample_data/xoxo.rst.txt b/_sources/sample_data/xoxo.rst.txt index 5a6a96c33..c5ae9468f 100644 --- a/_sources/sample_data/xoxo.rst.txt +++ b/_sources/sample_data/xoxo.rst.txt @@ -55,7 +55,7 @@ directory if it's not there already. .. rst-class:: sphx-glr-timing - **Total running time of the script:** (0 minutes 0.067 seconds) + **Total running time of the script:** (0 minutes 0.066 seconds) .. _sphx_glr_download_sample_data_xoxo.py: diff --git a/examples-dev/sg_execution_times.html b/examples-dev/sg_execution_times.html index 2701d5c84..03d7d461b 100644 --- a/examples-dev/sg_execution_times.html +++ b/examples-dev/sg_execution_times.html @@ -393,11 +393,11 @@

    Computation times#

    -

    00:01.305 total execution time for examples-dev files:

    +

    00:01.224 total execution time for examples-dev files:

    - + diff --git a/examples-dev/voronoi.html b/examples-dev/voronoi.html index 3f0aec8c0..ed7183236 100644 --- a/examples-dev/voronoi.html +++ b/examples-dev/voronoi.html @@ -798,7 +798,7 @@

    Infinite rays
    (-1.5, 1.5)
     
    -

    Total running time of the script: (0 minutes 1.305 seconds)

    +

    Total running time of the script: (0 minutes 1.224 seconds)

    -connectivity -connectivity -connectivity -connectivity -connectivity -connectivity -connectivity -connectivity -connectivity -connectivity -connectivity -connectivity
    <matplotlib.image.AxesImage object at 0x7f212d6e8d90>
    +connectivity
    <matplotlib.image.AxesImage object at 0x7fcdb856ad50>
     
    -

    Total running time of the script: (0 minutes 1.665 seconds)

    +

    Total running time of the script: (0 minutes 1.659 seconds)

    -overlap regridder
    <matplotlib.collections.LineCollection object at 0x7f2138a86590>
    +overlap regridder
    <matplotlib.collections.LineCollection object at 0x7fcdb7c8a1d0>
     
    @@ -523,7 +523,7 @@

    Relative overlapresult.ugrid.plot()

    -overlap regridder -overlap regridder -overlap regridder -partitioning -partitioning -partitioning -partitioning
    <matplotlib.collections.LineCollection object at 0x7f212c2c9610>
    +partitioning
    <matplotlib.collections.LineCollection object at 0x7fcdb715f7d0>
     
    @@ -899,7 +899,7 @@

    Preserving orderTotal running time of the script: (0 minutes 3.901 seconds)

    +

    Total running time of the script: (0 minutes 3.911 seconds)

    • mesh2d_nNodes
      PandasIndex
      PandasIndex(RangeIndex(start=0, stop=217, step=1, name='mesh2d_nNodes'))
    • mesh2d_nEdges
      PandasIndex
      PandasIndex(RangeIndex(start=0, stop=600, step=1, name='mesh2d_nEdges'))
    • mesh2d_nFaces
      PandasIndex
      PandasIndex(RangeIndex(start=0, stop=384, step=1, name='mesh2d_nFaces'))


  • @@ -968,7 +968,7 @@

    UgridDataArrayuda.ugrid.plot() -plotting
    -plotting -plotting
    -plotting -plotting -plotting -plotting
    -plotting -plotting -node_x = 4.84e+05, node_y = 3.614e+06, node = 1000
    [<matplotlib.lines.Line2D object at 0x7f212cec51d0>]
    +node_x = 4.84e+05, node_y = 3.614e+06, node = 1000
    [<matplotlib.lines.Line2D object at 0x7fcdb82b1dd0>]
     
    -

    Total running time of the script: (0 minutes 11.610 seconds)

    +

    Total running time of the script: (0 minutes 11.432 seconds)

    Centroid Voronoi Tesselation (CVT) (voronoi.py)

    00:01.305

    00:01.224

    0.0 MB

    - + - + - + - - + + - - + + - + - + - + diff --git a/examples/vector_conversion.html b/examples/vector_conversion.html index 90a9b4696..dbc5a1536 100644 --- a/examples/vector_conversion.html +++ b/examples/vector_conversion.html @@ -448,7 +448,7 @@ uda.ugrid.plot(vmin=-20,vmax=90,cmap="terrain") -vector conversion
    <matplotlib.collections.PolyCollection object at 0x7f212cdaa750>
    +vector conversion
    <matplotlib.collections.PolyCollection object at 0x7fcdb8477050>
     
    @@ -859,9 +859,9 @@

    Conversion from GeoDataFrame @@ -897,7 +897,7 @@

    “Rasterizing”, or “burning” vector geometriesburned.ugrid.plot()

    -vector conversion
    • id
      (id)
      float64
      0.0 1.0 2.0 3.0 ... 9.0 10.0 11.0
      array([ 0.,  1.,  2.,  3.,  4.,  5.,  6.,  7.,  8.,  9., 10., 11.])
    • id
      PandasIndex
      PandasIndex(Index([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0], dtype='float64', name='id'))
  • unit :
    m NAP


  • This is a convenient way to create masks for specific regions:

    @@ -1319,7 +1319,7 @@

    “Rasterizing”, or “burning” vector geometriesmodified.ugrid.plot(vmin=-20, vmax=90, cmap="terrain") -vector conversion -vector conversion
    <matplotlib.collections.PolyCollection object at 0x7f212cea0250>
    +vector conversion
    <matplotlib.collections.PolyCollection object at 0x7fcdb8235810>
     
    @@ -1436,7 +1436,7 @@

    Snap to gridTotal running time of the script: (0 minutes 16.223 seconds)

    +

    Total running time of the script: (0 minutes 15.650 seconds)

    -

    Total running time of the script: (0 minutes 0.085 seconds)

    +

    Total running time of the script: (0 minutes 0.084 seconds)

    Vector geometry conversion (vector_conversion.py)

    00:16.223

    00:15.650

    0.0 MB

    Plot unstructured mesh data (plotting.py)

    00:11.610

    00:11.432

    0.0 MB

    Regridding overview (regridder_overview.py)

    00:08.056

    00:08.067

    0.0 MB

    Select unstructured data (selection.py)

    00:03.982

    OverlapRegridder (overlap_regridder.py)

    00:04.012

    0.0 MB

    OverlapRegridder (overlap_regridder.py)

    00:03.981

    Select unstructured data (selection.py)

    00:03.967

    0.0 MB

    Partitioning (partitioning.py)

    00:03.901

    00:03.911

    0.0 MB

    Connectivity (connectivity.py)

    00:01.665

    00:01.659

    0.0 MB

    Quick overview (quick_overview.py)

    00:00.555

    00:00.551

    0.0 MB

    - + - + - + - + - + diff --git a/sample_data/xoxo.html b/sample_data/xoxo.html index 472b39bf4..fb5e203f1 100644 --- a/sample_data/xoxo.html +++ b/sample_data/xoxo.html @@ -449,7 +449,7 @@ ax.set_aspect(1) -

    Total running time of the script: (0 minutes 0.067 seconds)

    +

    Total running time of the script: (0 minutes 0.066 seconds)

    Elevation NL (elevation_nl.py)

    00:00.812

    00:00.803

    0.0 MB

    ADH San Diego (adh_san_diego.py)

    00:00.325

    00:00.318

    0.0 MB

    Disk (disk.py)

    00:00.163

    00:00.162

    0.0 MB

    Pronvinces NL (provinces_nl.py)

    00:00.085

    00:00.084

    0.0 MB

    Xoxo (xoxo.py)

    00:00.067

    00:00.066

    0.0 MB