From a340edea6a3a5e5c142d7d6a08845ab9fb0af92f Mon Sep 17 00:00:00 2001 From: Matthew Iannucci Date: Thu, 18 Jul 2024 16:14:18 -0400 Subject: [PATCH] Handle nan triangle indices for ugrid --- examples/fvcom.ipynb | 1072 ++++++++++++++--------------- xarray_subset_grid/grids/ugrid.py | 7 +- 2 files changed, 520 insertions(+), 559 deletions(-) diff --git a/examples/fvcom.ipynb b/examples/fvcom.ipynb index 03e6f00..c114ff7 100644 --- a/examples/fvcom.ipynb +++ b/examples/fvcom.ipynb @@ -381,14 +381,14 @@ " fill: currentColor;\n", "}\n", "
<xarray.Dataset> Size: 20GB\n",
-       "Dimensions:             (time: 757, four: 4, nele: 569405, node: 303714,\n",
+       "Dimensions:             (time: 763, four: 4, nele: 569405, node: 303714,\n",
        "                         three: 3, maxnode: 10, maxelem: 8)\n",
        "Coordinates:\n",
        "    lat                 (node) float32 1MB dask.array<chunksize=(303714,), meta=np.ndarray>\n",
        "    latc                (nele) float32 2MB dask.array<chunksize=(569405,), meta=np.ndarray>\n",
        "    lon                 (node) float32 1MB dask.array<chunksize=(303714,), meta=np.ndarray>\n",
        "    lonc                (nele) float32 2MB dask.array<chunksize=(569405,), meta=np.ndarray>\n",
-       "  * time                (time) datetime64[ns] 6kB 2024-06-15T21:00:00 ... 202...\n",
+       "  * time                (time) datetime64[ns] 6kB 2024-06-18T21:00:00 ... 202...\n",
        "Dimensions without coordinates: four, nele, node, three, maxnode, maxelem\n",
        "Data variables: (12/39)\n",
        "    Itime               (time) datetime64[ns] 6kB dask.array<chunksize=(1,), meta=np.ndarray>\n",
@@ -398,12 +398,12 @@
        "    art1                (node) float32 1MB dask.array<chunksize=(303714,), meta=np.ndarray>\n",
        "    art2                (node) float32 1MB dask.array<chunksize=(303714,), meta=np.ndarray>\n",
        "    ...                  ...\n",
-       "    wet_nodes_prev_int  (time, node) int32 920MB dask.array<chunksize=(1, 303714), meta=np.ndarray>\n",
+       "    wet_nodes_prev_int  (time, node) int32 927MB dask.array<chunksize=(1, 303714), meta=np.ndarray>\n",
        "    x                   (node) float32 1MB dask.array<chunksize=(303714,), meta=np.ndarray>\n",
        "    xc                  (nele) float32 2MB dask.array<chunksize=(569405,), meta=np.ndarray>\n",
        "    y                   (node) float32 1MB dask.array<chunksize=(303714,), meta=np.ndarray>\n",
        "    yc                  (nele) float32 2MB dask.array<chunksize=(569405,), meta=np.ndarray>\n",
-       "    zeta                (time, node) float32 920MB dask.array<chunksize=(1, 303714), meta=np.ndarray>\n",
+       "    zeta                (time, node) float32 927MB dask.array<chunksize=(1, 303714), meta=np.ndarray>\n",
        "Attributes: (12/14)\n",
        "    Conventions:                 CF-1.0\n",
        "    CoordinateProjection:        init=nad83:4205\n",
@@ -413,11 +413,11 @@
        "    Surface_Heat_Forcing:        FVCOM variable surface heat forcing file:\\nF...\n",
        "    ...                          ...\n",
        "    Tidal_Forcing:               TIDAL ELEVATION FORCING IS OFF!\n",
-       "    history:                     model started at: 15/06/2024   21:15\n",
+       "    history:                     model started at: 18/06/2024   21:15\n",
        "    institution:                 School for Marine Science and Technology\n",
        "    references:                  http://fvcom.smast.umassd.edu, http://codfis...\n",
        "    source:                      FVCOM_4.3\n",
-       "    title:                       NGOFS2