healpix_to_lonlat¶
-
astropy_healpix.
healpix_to_lonlat
(healpix_index, nside, dx=None, dy=None, order='ring')[source]¶ Convert HEALPix indices (optionally with offsets) to longitudes/latitudes.
If no offsets (
dx
anddy
) are provided, the coordinates will default to those at the center of the HEALPix pixels.Parameters: healpix_index : int or
ndarray
HEALPix indices (as a scalar or array)
nside : int or
ndarray
Number of pixels along the side of each of the 12 top-level HEALPix tiles
dx, dy : float or
ndarray
, optionalOffsets inside the HEALPix pixel, which must be in the range [0:1], where 0.5 is the center of the HEALPix pixels (as scalars or arrays)
order : { ‘nested’ | ‘ring’ }, optional
Order of HEALPix pixels
Returns: lon :
Longitude
The longitude values
lat :
Latitude
The latitude values