This is a continuation of this Question: How do HEALPix FITS files of CMB maps translate into ndarrays? What are the coordinates?
CMB maps come as FITS files. The map is a 1-dimensional vector of temperature values of the pixels.
I would like to use Healpy's pix2ang function to read the position of each individual pixel, and know which pixel is which.
http://healpy.readthedocs.org/en/latest/generated/healpy.pixelfunc.pix2ang.html
For this function, what exactly is the input for a "pixel index"? Do I have to translate each temperature-valued pixel into spherical harmonics first?
I know that in spherical harmonics, each a_lm corresponds to a FITS file extension created will contain one integer column with index = l^2+l+m+1. But what about an array of pixels without using l and m?