You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"print(\"Bounding Circle Mean: \", bcircle_subset.values.mean())"
555
555
]
556
+
},
557
+
{
558
+
"cell_type": "markdown",
559
+
"metadata": {},
560
+
"source": [
561
+
"## Retrieving Orignal Grid Indices"
562
+
]
563
+
},
564
+
{
565
+
"cell_type": "markdown",
566
+
"metadata": {},
567
+
"source": [
568
+
"Sometimes having the original grids' indices is useful. These indices can be stored within the subset with the `inverse_indices` variable. This can be used to store the indices of the original face centers, edge centers, and node indices. This variable can be used within the subset as follows:\n",
569
+
"\n",
570
+
"* Passing in `True`, which will store the face center indices\n",
571
+
"* Passing in a list of which indices to store, along with `True`, to indicate what kind of original grid indices to store.\n",
572
+
" * Options for which indices to select include: `face`, `node`, and `edge`\n",
573
+
"\n",
574
+
"This currently only works when the element is `face centers`. Elements `nodes` and `edge centers` will be supported in the future."
"To check if a Grid (or dataset using `.uxgrid`) is a subset, we can use `Grid.is_subset`, which will return either `True` or `False`, depending on whether the `Grid` is a subset. Since `subset_indices` is a subset, using this feature we will return `True`:"
619
+
]
620
+
},
621
+
{
622
+
"cell_type": "code",
623
+
"execution_count": null,
624
+
"metadata": {},
625
+
"outputs": [],
626
+
"source": [
627
+
"subset_indices.uxgrid.is_subset"
628
+
]
629
+
},
630
+
{
631
+
"cell_type": "markdown",
632
+
"metadata": {},
633
+
"source": [
634
+
"The file we have been using to create these subsets, `uxds`, is not a subset, so using the same call we will return `False:`"
0 commit comments