bento.tl.area

bento.tl.area(sdata, shape_key, recompute=False) None

Compute the area of each shape.

Parameters:
  • sdata (SpatialData) – Input SpatialData object

  • shape_key (str) – Key in sdata.shapes containing shape geometries

  • recompute (bool, default False) – Whether to force recomputation if feature exists

Returns:

Updates sdata.shapes[shape_key] with: - ‘{shape_key}_area’: Area of each polygon

Return type:

None