lonlat_to_healpix¶
- astropy_healpix.lonlat_to_healpix(lon, lat, nside, return_offsets=False, order='ring')[source]¶
Convert longitudes/latitudes to HEALPix indices
- Parameters:
- lon, lat
Quantity The longitude and latitude values as
Quantityinstances with angle units.- nsideint or
ndarray Number of pixels along the side of each of the 12 top-level HEALPix tiles
- order{ ‘nested’ | ‘ring’ }
Order of HEALPix pixels
- return_offsetsbool, optional
If
True, the returned values are the HEALPix pixel indices as well asdxanddy, the fractional positions inside the pixels. IfFalse(the default), only the HEALPix pixel indices is returned.
- lon, lat
- Returns: