healpix_geo.zuniq.elliptical_cone_coverage#
- healpix_geo.zuniq.elliptical_cone_coverage(center, ellipse_geometry, position_angle, depth, *, delta_depth=0, ellipsoid='sphere', flat=True)#
Search the cells covering the given elliptical cone.
Elliptical cone in this case refers to an ellipse 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.ellipse_geometry (
numpy.ndarrayortupleoffloat) – The semimajor and semimajor axis, as a 2-sized array or as a 2-tuple of float.position_angle (
float) – The orientation of the ellipse.depth (
int) – The maximum depth of the cells to be returned.ellipsoid (ellipsoid-like, default:
"sphere") – Reference ellipsoid to evaluate healpix on. If the reference ellipsoid is spherical, this will return the same result ascdshealpix.nested.polygon_search()followed by a translation to the zuniq scheme.flat (
bool, default:True) – IfTrue, the cells returned will all be at the passed depth.
- Returns:
cell_ids (
numpy.ndarray) – The rasterized cell ids.fully_covered (
numpy.ndarray) – Boolean array marking whether the cells are fully covered by the ellipse.