Skip to content

Commit

Permalink
deploy: a021f19
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Nov 9, 2023
1 parent c67549e commit 620c62f
Show file tree
Hide file tree
Showing 366 changed files with 629 additions and 649 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -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: b968afbbe0e4ba061c4f0ec799000919
config: 483b1904cba7d7c16f76d86dfa22d7fc
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added .doctrees/api.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.OverlapRegridder.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.attrs.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.bounds.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.copy.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.dimensions.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.edge_bounds.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.edge_x.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.edge_y.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.from_dataset.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.isel.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.mesh.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.meshkernel.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.n_edge.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.n_node.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.plot.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.rename.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.sel.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.set_crs.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.to_crs.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.to_dataset.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid1d.to_shapely.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.area.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.attrs.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.bounds.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.celltree.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.centroids.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.copy.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.dimensions.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.edge_bounds.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.edge_x.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.edge_y.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.face_bounds.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.face_x.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.face_y.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.from_dataset.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.isel.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.mesh.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.meshkernel.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.n_edge.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.n_face.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.n_node.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.partition.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.perimeter.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.plot.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.rasterize.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.rename.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.sel.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.sel_points.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.set_crs.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.to_crs.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.to_dataset.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.to_periodic.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.to_shapely.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.Ugrid2d.triangulate.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.UgridDataArray.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.UgridDataArray.ugrid.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.UgridDataset.doctree
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.UgridDataset.ugrid.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.UgridDatasetAccessor.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/api/xugrid.burn_vector_geometry.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.concat.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.full_like.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.merge.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.merge_partitions.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.ones_like.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.open_dataarray.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.open_dataset.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.open_mfdataset.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.open_zarr.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.plot.contour.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.plot.contourf.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.plot.imshow.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.plot.line.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.plot.pcolormesh.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.plot.scatter.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.plot.surface.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.plot.tripcolor.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.polygonize.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.snap_to_grid.doctree
Binary file not shown.
Binary file added .doctrees/api/xugrid.zeros_like.doctree
Binary file not shown.
Binary file added .doctrees/changelog.doctree
Binary file not shown.
Binary file added .doctrees/dev_docs.doctree
Binary file not shown.
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/examples-dev/index.doctree
Binary file not shown.
Binary file added .doctrees/examples-dev/sg_execution_times.doctree
Binary file not shown.
Binary file added .doctrees/examples-dev/voronoi.doctree
Binary file not shown.
Binary file added .doctrees/examples/connectivity.doctree
Binary file not shown.
Binary file added .doctrees/examples/index.doctree
Binary file not shown.
Binary file added .doctrees/examples/overlap_regridder.doctree
Binary file not shown.
Binary file added .doctrees/examples/partitioning.doctree
Binary file not shown.
Binary file added .doctrees/examples/plotting.doctree
Binary file not shown.
Binary file added .doctrees/examples/quick_overview.doctree
Binary file not shown.
Binary file added .doctrees/examples/regridder_overview.doctree
Binary file not shown.
Binary file added .doctrees/examples/selection.doctree
Binary file not shown.
Binary file added .doctrees/examples/sg_execution_times.doctree
Binary file not shown.
Binary file added .doctrees/examples/vector_conversion.doctree
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/sample_data/adh_san_diego.doctree
Binary file not shown.
Binary file added .doctrees/sample_data/disk.doctree
Binary file not shown.
Binary file added .doctrees/sample_data/elevation_nl.doctree
Binary file not shown.
Binary file added .doctrees/sample_data/index.doctree
Binary file not shown.
Binary file added .doctrees/sample_data/provinces_nl.doctree
Binary file not shown.
Binary file added .doctrees/sample_data/sg_execution_times.doctree
Binary file not shown.
Binary file added .doctrees/sample_data/xoxo.doctree
Binary file not shown.
Binary file added .doctrees/terminology.doctree
Binary file not shown.
Binary file added .doctrees/user_guide.doctree
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"outputs": [],
"source": [
"def create_grid(bounds, nx, ny):\n \"\"\"\n Create a simple grid of triangles covering a rectangle.\n \"\"\"\n import numpy as np\n from matplotlib.tri import Triangulation\n\n xmin, ymin, xmax, ymax = bounds\n dx = (xmax - xmin) / nx\n dy = (ymax - ymin) / ny\n x = np.arange(xmin, xmax + dx, dx)\n y = np.arange(ymin, ymax + dy, dy)\n y, x = [a.ravel() for a in np.meshgrid(y, x, indexing=\"ij\")]\n faces = Triangulation(x, y).triangles\n return xu.Ugrid2d(x, y, -1, faces)\n\n\nuda = xu.data.elevation_nl().ugrid.sel(\n x=slice(125_000, 225_000), y=slice(440_000, 500_000)\n)\ngrid = create_grid(uda.ugrid.total_bounds, nx=7, ny=6)"
"def create_grid(bounds, nx, ny):\n \"\"\"Create a simple grid of triangles covering a rectangle.\"\"\"\n import numpy as np\n from matplotlib.tri import Triangulation\n\n xmin, ymin, xmax, ymax = bounds\n dx = (xmax - xmin) / nx\n dy = (ymax - ymin) / ny\n x = np.arange(xmin, xmax + dx, dx)\n y = np.arange(ymin, ymax + dy, dy)\n y, x = [a.ravel() for a in np.meshgrid(y, x, indexing=\"ij\")]\n faces = Triangulation(x, y).triangles\n return xu.Ugrid2d(x, y, -1, faces)\n\n\nuda = xu.data.elevation_nl().ugrid.sel(\n x=slice(125_000, 225_000), y=slice(440_000, 500_000)\n)\ngrid = create_grid(uda.ugrid.total_bounds, nx=7, ny=6)"
]
},
{
Expand Down Expand Up @@ -161,7 +161,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@


def create_grid(bounds, nx, ny):
"""
Create a simple grid of triangles covering a rectangle.
"""
"""Create a simple grid of triangles covering a rectangle."""
import numpy as np
from matplotlib.tri import Triangulation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion _downloads/57be9f22eeecb878a6868437d46d6e74/voronoi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
xr.full_like(ds["face_z"].ugrid.obj, False, dtype=bool),
ds.grids[0],
)
uda.values[0] = True
uda[0] = True
uda.ugrid.plot()

# %%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"outputs": [],
"source": [
"uda = xugrid.UgridDataArray(\n xr.full_like(ds[\"face_z\"].ugrid.obj, False, dtype=bool),\n ds.grids[0],\n)\nuda.values[0] = True\nuda.ugrid.plot()"
"uda = xugrid.UgridDataArray(\n xr.full_like(ds[\"face_z\"].ugrid.obj, False, dtype=bool),\n ds.grids[0],\n)\nuda[0] = True\nuda.ugrid.plot()"
]
},
{
Expand Down Expand Up @@ -233,7 +233,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion _downloads/8ad2450aca9817648876edcc0921c230/plotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@


def create_grid(bounds, nx, ny):
"""
Create a simple grid of triangles covering a rectangle.
"""
"""Create a simple grid of triangles covering a rectangle."""
import numpy as np
from matplotlib.tri import Triangulation

Expand Down
2 changes: 1 addition & 1 deletion _downloads/addf8a4d2e321d90b2350108d90f3c08/disk.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion _downloads/e58b48ea6142c07792ef4f969043fbbe/xoxo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"outputs": [],
"source": [
"def create_grid(bounds, nx, ny):\n \"\"\"\n Create a simple grid of triangles covering a rectangle.\n \"\"\"\n import numpy as np\n from matplotlib.tri import Triangulation\n\n xmin, ymin, xmax, ymax = bounds\n dx = (xmax - xmin) / nx\n dy = (ymax - ymin) / ny\n x = np.arange(xmin, xmax + dx, dx)\n y = np.arange(ymin, ymax + dy, dy)\n y, x = [a.ravel() for a in np.meshgrid(y, x, indexing=\"ij\")]\n faces = Triangulation(x, y).triangles\n return xu.Ugrid2d(x, y, -1, faces)\n\n\ngrid = create_grid(uda.ugrid.total_bounds, 7, 7)"
"def create_grid(bounds, nx, ny):\n \"\"\"Create a simple grid of triangles covering a rectangle.\"\"\"\n import numpy as np\n from matplotlib.tri import Triangulation\n\n xmin, ymin, xmax, ymax = bounds\n dx = (xmax - xmin) / nx\n dy = (ymax - ymin) / ny\n x = np.arange(xmin, xmax + dx, dx)\n y = np.arange(ymin, ymax + dy, dy)\n y, x = [a.ravel() for a in np.meshgrid(y, x, indexing=\"ij\")]\n faces = Triangulation(x, y).triangles\n return xu.Ugrid2d(x, y, -1, faces)\n\n\ngrid = create_grid(uda.ugrid.total_bounds, 7, 7)"
]
},
{
Expand Down Expand Up @@ -330,7 +330,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Binary file modified _images/sphx_glr_connectivity_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_connectivity_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_connectivity_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_connectivity_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_disk_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_disk_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plotting_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_quick_overview_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_voronoi_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_voronoi_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_voronoi_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_voronoi_004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_voronoi_005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_voronoi_006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_voronoi_007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_voronoi_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions _modules/xugrid/core/dataarray_accessor.html
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ <h1>Source code for xugrid.core.dataarray_accessor</h1><div class="highlight"><p
<a class="viewcode-back" href="../../../api/xugrid.UgridDataArrayAccessor.sel.html#xugrid.UgridDataArrayAccessor.sel">[docs]</a>
<span class="k">def</span> <span class="nf">sel</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">y</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Returns a new object, a subselection in the UGRID x and y coordinates.</span>
<span class="sd"> Return a new object, a subselection in the UGRID x and y coordinates.</span>

<span class="sd"> The indexing for x and y always occurs orthogonally, i.e.:</span>
<span class="sd"> ``.sel(x=[0.0, 5.0], y=[10.0, 15.0])`` results in a four points. For</span>
Expand Down Expand Up @@ -650,8 +650,8 @@ <h1>Source code for xugrid.core.dataarray_accessor</h1><div class="highlight"><p
<span class="sd"> rasterized: xr.DataArray</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">index</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">grid</span><span class="o">.</span><span class="n">rasterize_like</span><span class="p">(</span>
<span class="n">x</span><span class="o">=</span><span class="n">other</span><span class="p">[</span><span class="s2">&quot;x&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">values</span><span class="p">,</span>
<span class="n">y</span><span class="o">=</span><span class="n">other</span><span class="p">[</span><span class="s2">&quot;y&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">values</span><span class="p">,</span>
<span class="n">x</span><span class="o">=</span><span class="n">other</span><span class="p">[</span><span class="s2">&quot;x&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">(),</span>
<span class="n">y</span><span class="o">=</span><span class="n">other</span><span class="p">[</span><span class="s2">&quot;y&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">(),</span>
<span class="p">)</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_raster</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">index</span><span class="p">)</span></div>

Expand Down Expand Up @@ -909,13 +909,13 @@ <h1>Source code for xugrid.core.dataarray_accessor</h1><div class="highlight"><p
<span class="k">else</span><span class="p">:</span>
<span class="n">exterior</span> <span class="o">=</span> <span class="kc">None</span>
<span class="k">if</span> <span class="n">mask</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">mask</span> <span class="o">=</span> <span class="n">mask</span><span class="o">.</span><span class="n">values</span>
<span class="n">mask</span> <span class="o">=</span> <span class="n">mask</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">()</span>

<span class="n">obj</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">obj</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="n">xr</span><span class="o">.</span><span class="n">DataArray</span><span class="p">):</span>
<span class="n">output</span> <span class="o">=</span> <span class="n">connectivity</span><span class="o">.</span><span class="n">_binary_iterate</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">grid</span><span class="o">.</span><span class="n">face_face_connectivity</span><span class="p">,</span>
<span class="n">obj</span><span class="o">.</span><span class="n">values</span><span class="p">,</span>
<span class="n">obj</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">(),</span>
<span class="n">value</span><span class="p">,</span>
<span class="n">iterations</span><span class="p">,</span>
<span class="n">mask</span><span class="p">,</span>
Expand Down Expand Up @@ -1098,7 +1098,7 @@ <h1>Source code for xugrid.core.dataarray_accessor</h1><div class="highlight"><p

<span class="n">filled</span> <span class="o">=</span> <span class="n">laplace_interpolate</span><span class="p">(</span>
<span class="n">connectivity</span><span class="o">=</span><span class="n">connectivity</span><span class="p">,</span>
<span class="n">data</span><span class="o">=</span><span class="n">da</span><span class="o">.</span><span class="n">values</span><span class="p">,</span>
<span class="n">data</span><span class="o">=</span><span class="n">da</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">(),</span>
<span class="n">use_weights</span><span class="o">=</span><span class="n">xy_weights</span><span class="p">,</span>
<span class="n">direct_solve</span><span class="o">=</span><span class="n">direct_solve</span><span class="p">,</span>
<span class="n">drop_tol</span><span class="o">=</span><span class="n">drop_tol</span><span class="p">,</span>
Expand All @@ -1116,7 +1116,7 @@ <h1>Source code for xugrid.core.dataarray_accessor</h1><div class="highlight"><p
<a class="viewcode-back" href="../../../api/xugrid.UgridDataArrayAccessor.to_dataset.html#xugrid.UgridDataArrayAccessor.to_dataset">[docs]</a>
<span class="k">def</span> <span class="nf">to_dataset</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">optional_attributes</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Converts this UgridDataArray or UgridDataset into a standard</span>
<span class="sd"> Convert this UgridDataArray or UgridDataset into a standard</span>
<span class="sd"> xarray.Dataset.</span>

<span class="sd"> The UGRID topology information is added as standard data variables.</span>
Expand Down
Loading

0 comments on commit 620c62f

Please sign in to comment.