xugrid.UgridDatasetAccessor.intersect_linestring#

UgridDatasetAccessor.intersect_linestring(linestring) Dataset[source]#

Intersect the grid along a collection of linestrings. Returns a new Dataset with the values for each intersected segment.

Parameters:

linestring (shapely.LineString)

Returns:

intersection – The name of the topology is prefixed in the x, y and s (spatium=distance) coordinates.

Return type:

xr.Dataset