We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53cc744 commit 0db0b96Copy full SHA for 0db0b96
cf_xarray/geometry.py
@@ -438,8 +438,8 @@ def cf_to_lines(ds: xr.Dataset):
438
geoms = np.where(np.diff(offset2) == 1, lines[offset2[:-1]], multilines)
439
440
return xr.DataArray(geoms, dims=part_node_count.dims, coords=part_node_count.coords)
441
-
442
+
443
def grid_to_polygons(ds: xr.Dataset) -> xr.DataArray:
444
"""
445
Converts a regular 2D lat/lon grid to a 2D array of shapely polygons.
0 commit comments