Stack patches of the Cosmic Microwave Background (CMB) temperature sky. Go here to see the full documentation and a worked example.
Install the latest release from PyPI:
pip install cmbstackOr install the development version from GitHub:
git clone https://github.com/IsaacLP/cmbstack.git
cd cmbstack
pip install -e .From a power spectrum file:
from cmbstack import StackingPipeline
pipeline = StackingPipeline.from_cl("path/to/spectrum.cl", nside=1024, seed=42)
stacked_result = pipeline.run()From an existing FITS map:
pipeline = StackingPipeline.from_fits("path/to/map.fits", field=0)
stacked_result = pipeline.run()From a map array already in memory:
pipeline = StackingPipeline.from_map(sky_map)
stacked_result = pipeline.run()