xdggs.HealpixInfo.cell_boundaries

xdggs.HealpixInfo.cell_boundaries#

HealpixInfo.cell_boundaries(cell_ids, backend='shapely')#

Derive cell boundary polygons from cell ids

Parameters:
  • cell_ids (array-like) – The cell ids.

  • backend ({"shapely", "geoarrow"}, default: "shapely") – The backend to convert to.

Returns:

polygons (array-like) – The derived cell boundary polygons. The format differs based on the passed backend:

  • "shapely": return a array of shapely.Polygon objects

  • "geoarrow": return a geoarrow array