Namespace: HEALPix

AladinUtils.HEALPix

Namespace for HEALPix-related utilities within the Aladin Lite API.
Source:

Methods

(static) ang2pix(nside, lon, lat) → {Array.<number>}

Computes HEALPix pixel indices from angular coordinates (longitude and latitude).
Parameters:
Name Type Description
nside number NSIDE parameter for the HEALPix grid.
lon number | Array.<number> Longitude or an array of longitudes.
lat number | Array.<number> Latitude or an array of latitudes.
Source:
Throws:
Throws an error if A.init is not called first.
Type
string
Returns:
ipix - Pixel index or an array of pixel indices.
Type
Array.<number>

(static) pix2ang(nside, ipix) → {Array.<LonLat>}

Computes angular coordinates (longitude and latitude) from HEALPix pixel indices.
Parameters:
Name Type Description
nside number NSIDE parameter for the HEALPix grid.
ipix number | Array.<number> Pixel index or an array of pixel indices.
Source:
Throws:
Throws an error if A.init is not called first.
Type
string
Returns:
lonlat - Longitude and latitude or an array of longitudes and latitudes.
Type
Array.<LonLat>

(static) vertices(nside, ipix) → {Array.<HpxCellVertices>}

Computes HEALPix vertices for a given NSIDE and pixel index (ipix).
Parameters:
Name Type Description
nside number NSIDE parameter for the HEALPix grid.
ipix number | Array.<number> Pixel index or an array of pixel indices.
Source:
Throws:
Throws an error if A.init is not called first.
Type
string
Returns:
vertices - An array representing HEALPix cell vertices. Each element has v1, v2, v3, v4 properties. Each vi is an object having a lon and a lat property.
Type
Array.<HpxCellVertices>