HEALPixIndex¶
- class nyx.emitter.catalogs.index.HEALPixIndex[source]¶
Bases:
objectCone search over ra/dec, indexed by nested-ordering HEALPix pixel.
- Parameters:
ra (array-like) – Catalog positions in degrees.
dec (array-like) – Catalog positions in degrees.
nside (int) – HEALPix nside of the index.
Build the index; see the class docstring for the arguments.
Methods Summary
nearest(ra, dec, radius)Closest catalog row to
(ra, dec), if one is within radius.query(ra, dec, radius)Rows within radius of
(ra, dec).Methods Documentation
- query(ra, dec, radius)[source]¶
Rows within radius of
(ra, dec).- Parameters:
- Returns:
Integer indices into the original catalog.
- Return type:
- classmethod __new__(*args, **kwargs)¶