The Python Sky Model 3 software

Andrea Zonca, Ben Thorne, Nicoletta Krachmalnicoff, Julian Borrill
8/1/2021
61 citations
astro-ph.IMastro-ph.CO

Official code: galsci/pysm (47 stars, Python, BSD-3-Clause, last commit 2026-11-14).

Abstract

The Python Sky Model (PySM) is a Python package used by Cosmic Microwave Background (CMB) experiments to simulate maps, in HEALPix pixelization, of the various diffuse astrophysical components of Galactic emission relevant at CMB frequencies (i.e. dust, synchrotron, free-free and Anomalous Microwave Emission), as well as the CMB itself. These maps may be integrated over a given instrument bandpass and smoothed with a given instrument beam.

Show full abstract

PySM 2, released in 2016, has become the de-facto standard for simulating Galactic emission, for example it is used by CMB-S4, Simons Observatory, LiteBird, PICO, CLASS, POLARBEAR and other CMB experiments, as shown by the 80+ citations of the PySM 2 publication. As the resolution of upcoming experiments increases, the PySM 2 software has started to show some limitations, the solution to these issues was to reimplement PySM from scratch focusing on these features: reimplement all the models with the numba Just-In-Time compiler for Python to reduce memory overhead and optimize performance; use MPI through mpi4py to coordinate execution of PySM 3 across multiple nodes and rely on libsharp, for distributed spherical harmonic transforms; employ the data utilities infrastructure provided by astropy to download the input templates and cache them when requested. At this stage we strive to maintain full compatibility with PySM 2, therefore we implement the exact same astrophysical emission models with the same naming scheme. In the extensive test suite we compare the output of each PySM 3 model with the results obtained by PySM 2.

View on arXivView PDF

Code Implementations(1)

galsci/pysmOfficial100%
BSD-3-Clause

PySM 3: Sky emission simulations for Cosmic Microwave Background experiments

4738Python, JavaScriptDec 12, 20182 weeks agoBSD-3-Clause
cosmic-microwave-backgroundcosmologyhealpixhealpympi+1 more

Similar Papers

Cite this paper

@article{zonca2021python,
  title  = {The Python Sky Model 3 software},
  author = {Andrea Zonca and Ben Thorne and Nicoletta Krachmalnicoff and Julian Borrill},
  year   = {2021},
  eprint = {2108.01444},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.01444}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.01444.svg)](https://codeofpaper.com/paper/2108.01444)

Discussion