import healpy as hp
import numpy as np
# FIXME: This is a copy of bayestar.fits.gz that excludes distance layers
# because they cause us to exceed the memory limit of 1 GB on
# readthedocs.org. See https://github.com/rtfd/readthedocs.org/issues/5717.
url = '../_static/bayestar.slim.fits.gz'
hpx = hp.read_map(url)