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"
}
Metadata
Release files for cmbscat 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cmbscat-0.0.3.tar.gz | 11.6 kB | Without provenance | Details for cmbscat-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cmbscat-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for cmbscat-0.0.3-py3-none-any.whl |
Total release size: 22.0 kB
Release files / cmbscat-0.0.3.tar.gz
| Download URL | cmbscat-0.0.3.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0eb92c5df81e95da82bdbe560d6cf399f5d81a8c4fbd30c928b8f1f4473dcc6e
|
|
BLAKE2b-256 checksum How to use checksums |
e006056a842668eb598eabf8ba685279207bcd40675e150ecad96d8df47d8809
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / cmbscat-0.0.3-py3-none-any.whl
| Download URL | cmbscat-0.0.3-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68a376183f7bee70373f7c41f4d8a7dacc148517180cac22d10a3405bbde33fb
|
|
BLAKE2b-256 checksum How to use checksums |
5080b13b30ff8fa2b1c5d2154755633b7561d95631d6ec2706e02889c324036b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for cmbscat 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.