Correlate BORG reconstructions with CMB data
Find a file
DeaglanBartlett 644aed33c8 Fix tests
2026-07-07 16:53:10 +01:00
cmborg Format code with ruff 2026-07-07 16:41:15 +01:00
notes Add profile timing notes 2026-03-13 15:54:31 +00:00
scripts Format code with ruff 2026-07-07 16:41:15 +01:00
tests Fix tests 2026-07-07 16:53:10 +01:00
.gitattributes Add gitattributes file 2026-04-08 10:18:33 +01:00
.gitignore Add test suite and update .gitignore 2026-03-13 15:52:00 +00:00
MANIFEST.in Refactor package structure and clean up codebase 2026-02-20 15:01:03 +00:00
pyproject.toml Refactor package structure and clean up codebase 2026-02-20 15:01:03 +00:00
README.md Prefer using GPU and run multiple chains 2026-04-27 09:15:57 +01:00
requirements-dev.txt Add code as of Aquila Fall 2025 meeting 2025-12-15 16:32:07 +00:00
requirements.txt Enable masking of observational data 2026-04-14 14:40:28 +01:00

CMBORG

Cross-correlate BORG density field reconstructions with CMB data (thermal Sunyaev-Zel'dovich effect).

Installation

Clone the repository and install in development mode:

git clone https://git.aquila-consortium.org/Aquila-Consortium/CMBORG
cd CMBORG
pip install -e .

For development (testing, linting):

pip install -e ".[dev]"

Quick start

Run a toy mock inference with scripts/main.py. This generates a synthetic tSZ map from a halo catalog, adds noise, and runs NUTS to recover the profile parameters (P0, xc0, n):

cd scripts
python main.py

Outputs: tsz_map_healpix.png, trace_plot.png, corner_plot.png.

Tests

pytest tests/

Tests cover the interpolation module (1D/2D Catmull-Rom splines, correction factor accuracy vs scipy), tSZ profile models (physical sanity, interpolated vs analytic agreement, JAX differentiability), and cosmological distances.

## To Do

  • Decide whether point source mask is necessary
  • Find what halo mass cut should be used for 10' beam
  • Check inference ok for nside=2048
  • Check factors of h in e.g. scaling

License

MIT