API¶
This is the API for the cdshealpix Python package.
This package is a wrapper around the Rust cdshealpix crate. The functions currently implemented by cdshealpix are the following:
cdshealpix¶
The HEALPix cells can be represented following two schema. The nested and the ring one.
Here are two methods in the cdshealpix
base module allowing to
convert HEALPix cells represented in the nested scheme into cells
represented in the ring scheme and vice versa.
|
Convert HEALPix cells from the NESTED to the RING scheme. |
|
Convert HEALPix cells from the RING to the NESTED scheme. |
cdshealpix.nested¶
|
Get the HEALPix indexes that contains specific sky coordinates. |
|
Get the HEALPix indexes that contains specific sky coordinates. |
|
Get the longitudes and latitudes of the center of some HEALPix cells at a given depth. |
|
Get the sky coordinates of the center of some HEALPix cells in a nested configuration at a given depth. |
|
Project the center of a HEALPix cell to the xy-HEALPix plane. |
|
Project sky coordinates to the HEALPix space. |
|
Project coordinates from the HEALPix space to the sky coordinate space. |
|
Get the longitudes and latitudes of the vertices of some HEALPix cells at a given depth. |
|
Get the sky coordinates of the vertices of some HEALPix cells at a given depth. |
|
Get the neighbouring cells of some HEALPix cells at a given depth. |
|
Get the neighbours of specific healpix cells. |
|
Get the HEALPix cells contained in a cone at a given depth. |
|
Get the HEALPix cells contained in a polygon at a given depth. |
|
Get the HEALPix cells contained in an elliptical cone at a given depth. |
|
Compute the HEALPix bilinear interpolation from sky coordinates. |
cdshealpix.ring¶
The ring scheme HEALPix methods take a nside
parameter instead
of a depth
one.
nside
refers to the number of cells being contained in the side
of a base cell (i.e. the 12 cells at the depth
0).
While in the nested scheme, nside
is a power of two
(because \(N_{side} = 2 ^ {depth}\)), in the ring scheme,
nside
does not necessary have to be a power of two!
|
Get the HEALPix indexes that contains specific sky coordinates. |
|
Get the HEALPix indexes that contains specific sky coordinates. |
|
Get the longitudes and latitudes of the center of some HEALPix cells at a given depth. |
|
Get the sky coordinates of the center of some HEALPix cells at a given nside. |
|
Project the center of a HEALPix cell to the xy-HEALPix plane. |
|
Get the longitudes and latitudes of the vertices of some HEALPix cells at a given nside. |
|
Get the sky coordinates of the vertices of some HEALPix cells at a given nside. |