Skip to main content

A package for scattering covariance synthesis on datasets of Healpix maps, based on the HealpixML package.

Project description

Map-based emulator for CMB systematics with scattering covariances

cmbscat is a pip installable package that can synthesize new full-sky map samples (emulations) on the HEALPix sphere which are both visually and statistically similar to the ones found in an (eventually small) dataset of simulations.

cmbscat relies heavily on the HealpixML library for efficient scattering covariance computation on the HEALPix sphere.

Install with pip

You can install it simply doing:

pip install cmbscat

Usage

You can then set generate a new dataset of CMB systematics maps by doing:

from cmbscat import cmbscat_pipe

# Set emulator parameters
params = {
    'NNN'          : 10,             # Number of input reference maps
    'gauss_real'   : True,             # Generate new input data as Gaussian realizations from pixel covariance of original data
    'NGEN'         : 10,               # Batch size for gradient descent
    'n_samples'    : 10,               # Samples in the input dataset
    'nside'        : 16,               # N_side of input maps
    'NORIENT'      : 4,                # Orientations in the SC
    'nstep'        : 50,              # Steps in gradient descent
    'KERNELSZ'     : 3,                # Wavelet kernel size
    'outname'      : 'example',        # Output name
    'outpath'      : './data/',        # Output path
    'data'         : 'variable_gain_sims.npy'  # Input data path
}

# Initialize pipeline...
pipeline = cmbscat_pipe(params)

#...and run! This generates NGEN new maps for each of the n_samples input maps
pipeline.run()

Tutorial Notebook

You can find an introductory notebook explaining all features of the cmbscat package here.

Specifically we apply it to simulated maps of an example of CMB satellites instrumental systematics, as described in [Campeti et al. 2025].

Citations

Should this code be used in any way, we kindly ask that the following article is cited:

@article{campeti:systematics_emulator, 
   author      = "Paolo Campeti, Jean-Marc Delouis, Luca Pagano, Erwan Allys, Massimiliano Lattanzi, Martina Gerbino",
   title       = "From few to many maps: A fast map-level emulator for extreme augmentation of CMB systematics datasets",
   eprint = "",
   archivePrefix = "arXiv",
   primaryClass = "astro-ph.CO",
   month = "",
   year = "2025"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmbscat-0.0.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmbscat-0.0.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file cmbscat-0.0.1.tar.gz.

File metadata

  • Download URL: cmbscat-0.0.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for cmbscat-0.0.1.tar.gz
Algorithm Hash digest
SHA256 89b1f1a9aee537e20bf8975cd561ac19eed853f3034658bbfb214818be2f989e
MD5 bbcd7fe87ca1a43c54bffd2199801a79
BLAKE2b-256 113627c914c5fec7f14c65b11c5d7b96b455566d64b50cff5d7da298c97123b7

See more details on using hashes here.

File details

Details for the file cmbscat-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cmbscat-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for cmbscat-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 871b2f0acd288f5cc4fdceecd6ca6b9a4e4e8f02ca379a2158f272b4e166145e
MD5 ba5ae0695dabc3215ab30ab5aafc1e98
BLAKE2b-256 316cce2e8eb33742feaef72870b5c77081ed7add60abc94483ba2c85aef39a0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page