SZ

class szpack_wrapper.SZ(cosmo=None)[source]

Bases: object

This class defines high level interface to call SZpack.

The SZpack works with the dimensionless (yet cosmology dependent) wavelength x defined as

\[x \equiv \frac{h\nu}{k_BT_{CMB0}}\]

wavelength_to_x() and x_to_wavelength() can be used to convert between x and Quantity instance.

Parameters
cosmoCosmology

The cosmology to use. default_cosmology is used if not set.

Attributes Summary

cosmo

Methods Summary

surface_brightness(self[, runmode, x, …])

Compute the SZ surface_brightness.

wavelength_to_x(self, wavelength)

Return the dimensionless wavelength.

x_to_wavelength(self, x)

Return the wavelength as Quantity.

Attributes Documentation

cosmo

Methods Documentation

surface_brightness(self, runmode='3D', x=None, wavelength=None, **kwargs)[source]

Compute the SZ surface_brightness.

The input can be either given as the dimensionless x or as Quantity.

The output is the SZ surface brightness as Quantity.

The runmode and kwargs is passed to SZpack wrapper to execute the calculation.

Refer to the README file of SZpack for more information of all run-modes supported and the associated arguments.

Parameters
xndarray

Dimensionless Observer frame photon frequency (h nu / k T0)

wavelengthQuantity

Observer frame photon wavelength/frequency.

Returns
Quantity

The SZ surface brightness.

wavelength_to_x(self, wavelength)[source]

Return the dimensionless wavelength.

x_to_wavelength(self, x)[source]

Return the wavelength as Quantity.