There are a number of Healpix IDL routines designed to find the pixel indices belonging to some geometrical area (e.g. spherical triangle, spherical polygon) defined by its vertices. There are the query_*
routines (e.g. query_triangle
). See the documentation here:
http://healpix.jpl.nasa.gov/html/idlnode45.htm
I wish to use these pixel indices in my healpy program. Either
(A) I could save the output list of pixel indices from the IDL query_*
routines in a data_file.save
format. You could then import this .sav
file of pixel indices into Python using the various modules, e.g. http://www.astropython.org/packages/idlsave94/
(B) It would be far more convenient to somehow not use IDL at all! Healpy has several pixel-related functions, but there seems to be no way to "convert" the IDL query_*
routines using healpy alone.
Is there a way to do query_polygon
using healpy? Is it possible to do this?