Huite

Results 101 issues of Huite

E.g. if we have data defined on the nodes, and not on the faces, we can "interpolate" the data from the nodes to the edges. The easiest way to do...

I might've investigated this before, but if I'm not mistaken a `with` block like this currently does not close: ```python with xu.open_dataset(path) as uds: print(uds) ``` I'm under the impression...

An inconsistency of the regridding method is that the barycentric method is confined to the voronoi tesselation of the grid. This means that "beyond" the centroids, the barycentric interpolator doesn't...

For example, to compute conductances in a MODFLOW model, it's very useful to get the total length of a river within a cell: ```python def length_of_intersection( gdf: "geopandas.GeoDataframe", # type:...

Polygonize collects all possible polygons: ```python collection = shapely.polygonize(shapely.linestrings(coordinates[edges])) polygon = max(collection.geoms, key=lambda x: _bbox_area(x.bounds)) ``` This will work as desired with holes and such, but not if there e.g....

E.g. currently Ugrid2d.from_meshkernel only uses the face_node_connectivity, but not the edge_node_connectivity. This results in a mismatch when edge properties are communicated from the meshkernel, so xugrid will have generated a...

In case of using a circumcenter voronoi tesselation, the cell-to-cell connections will nicely form orthogonal intersections with the cell faces. However, it may also generate a lot of very short...

In a number of cases (reading from IDF or via rasterio / rioxarray), a DataArray will contain scalar dx and dy coordinates. Since these aren't associated with a dimension, they...

The current implementation of snap to grid just checks whether any element of the linestring occurs between the centroid of the face and the centroid of an edge. If it...