HEALPix
- Description:
- Namespace for HEALPix-related utilities within the Aladin Lite API.
- Source:
Methods
(static) ang2pix(nside, lon, lat) → {Array.<number>}
- Description:
- Computes HEALPix pixel indices from angular coordinates (longitude and latitude).
- Source:
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. |
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>}
- Description:
- Computes angular coordinates (longitude and latitude) from HEALPix pixel indices.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
nside |
number | NSIDE parameter for the HEALPix grid. |
ipix |
number | Array.<number> | Pixel index or an array of pixel indices. |
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>}
- Description:
- Computes HEALPix vertices for a given NSIDE and pixel index (ipix).
- Source:
Parameters:
Name | Type | Description |
---|---|---|
nside |
number | NSIDE parameter for the HEALPix grid. |
ipix |
number | Array.<number> | Pixel index or an array of pixel indices. |
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>