Skip to main content

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

Project description

CMBSCAT: fast map-based emulator for CMB systematics

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

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

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.0.tar.gz (10.9 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.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmbscat-0.0.0.tar.gz
  • Upload date:
  • Size: 10.9 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.0.tar.gz
Algorithm Hash digest
SHA256 86395515da3fea1737ac8e84baacd1183278dde3ae2f00cd5ebeac1220eb6db4
MD5 bf0aded9590ccc35b14961b946a43947
BLAKE2b-256 96b649dba31f194ce8fb3be954eb1eb2dcc28497aa9899447209bd955e06d8a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cmbscat-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c86663e5339ee92a033c9ffabc8ccb6575b59f1bca4832fe7075e231ee32767d
MD5 c31eac7f361db8cc49e435c8bfc427a0
BLAKE2b-256 c2b9d10e1d5d28e636152b1b43f9adb6fdc662d25caa67bbec64c9a47241eb04

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