healpix_geo.auto.cone_coverage#
- healpix_geo.auto.cone_coverage(center, radius, grid, *, delta_level=0, flat=True)#
Search the cells covering the given cone
Cone in this case means a circle on the surface of the reference ellipsoid.
- Parameters:
center (
numpy.ndarrayortupleoffloat) – The center of the box, either as a 2-sized array or as a 2-tuple of float.radius (
float) – The radius of the cone, in degree.grid (
Grid) – The definition of the HEALPix grid.flat (
bool, default:True) – IfTrue, the cells returned will all be at the passed depth.
- Returns:
cell_ids (
numpy.ndarray) – The rasterized cell ids.levels (
numpy.ndarray) – The refinement levels of the cell ids. Ifflat is True, these will all have the same value. Only returned fornestedandring.fully_covered (
numpy.ndarray) – Boolean array marking whether the cells are fully covered by the circle.