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()
andx_to_wavelength()
can be used to convert betweenx
andQuantity
instance.- Parameters
- cosmo
Cosmology
The cosmology to use.
default_cosmology
is used if not set.
- cosmo
Attributes Summary
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 asQuantity
.The output is the SZ surface brightness as
Quantity
.The
runmode
andkwargs
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.