Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.41 KB

README.md

File metadata and controls

47 lines (35 loc) · 1.41 KB

Made at Code/Astro PyPI version Python version License: MIT Development Status

cmbstack

Stack patches of the Cosmic Microwave Background (CMB) temperature sky. Go here to see the full documentation and a worked example.

Installation

Install the latest release from PyPI:

pip install cmbstack

Or install the development version from GitHub:

git clone https://github.com/IsaacLP/cmbstack.git
cd cmbstack
pip install -e .

Quick Start

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()