healpix_geo.nested.zone_coverage#

healpix_geo.nested.zone_coverage(bbox, depth, *, ellipsoid='sphere', flat=True)#

Search the cells covering the given bounding box

Parameters:
  • bbox (tuple of float) – The 2D bounding box to rasterize.

  • depth (int) – The maximum depth of the cells to be returned.

  • ellipsoid (ellipsoid-like, default: "sphere") – Reference ellipsoid to evaluate healpix on.

  • flat (bool, default: True) – If True, the cells returned will all be at the passed depth.

Returns:

  • cell_ids (numpy.ndarray) – The rasterized cell ids.

  • depths (numpy.ndarray) – The depths of the cell ids. If flat is True, these will all have the same value.

  • fully_covered (numpy.ndarray) – Boolean array marking whether the cells are fully covered by the bounding box.