observation_utils#

Module Contents#

Functions#

get_pointings(n_pointings, healpix_in, nside_in, seed)

upgrade_healpix(pix_id, nested, nside_in, nside_out)

Upgrade (superresolve) a healpix into finer ones

get_healpix_centers(pix_id, nside, nest)

Get the ra, dec corresponding to centers of the healpixels with given IDs

observation_utils.get_pointings(n_pointings, healpix_in, nside_in, seed)[source]#
observation_utils.upgrade_healpix(pix_id, nested, nside_in, nside_out)[source]#

Upgrade (superresolve) a healpix into finer ones

pix_idint

coarse healpix ID to upgrade

nestedbool

whether pix_id is given in NESTED scheme

nside_inint

NSIDE of pix_id

nside_outint

desired NSIDE of finer healpix

np.array

the upgraded healpix IDs in the NESTED scheme

observation_utils.get_healpix_centers(pix_id, nside, nest)[source]#

Get the ra, dec corresponding to centers of the healpixels with given IDs

pix_idint or array-like

IDs of healpixels to evaluate centers. Must be in NESTED scheme

nside_inint

NSIDE of pix_id