match_hp_resolution

rubin_sim.scheduler.utils.match_hp_resolution(in_map, nside_out, unseen2nan=True)

Utility to convert healpix map resolution if needed and change hp.UNSEEN values to np.nan.

Parameters:
in_mapnp.array

A valie healpix map

nside_outint

The desired resolution to convert in_map to

unseen2nanbool (True)

If True, convert any hp.UNSEEN values to np.nan