WebSkySZ¶
- class pysm3.WebSkySZ(nside, version='0.4', sz_type='kinetic', max_nside=4096, map_dist=None)[source] [edit on github]¶
Bases:
Model
- Parameters:
- mpi_comm: object
MPI communicator object (optional, default=None).
- nside: int
Resolution parameter at which this model is to be calculated.
- max_nside: int
Keeps track of the the maximum Nside this model is available at by default 512 like PySM 2 models
- smoothing_lmaxint
\(\ell_{max}\) for the smoothing step, by default \(2*N_{side}\)
Methods Summary
get_emission
(freqs[, weights])This function evaluates the component model at a either a single frequency, an array of frequencies, or over a bandpass.
Get SZ filenames for a websky version
Methods Documentation
- get_emission(freqs: Unit('GHz'), weights=None)[source] [edit on github]¶
This function evaluates the component model at a either a single frequency, an array of frequencies, or over a bandpass.
- Parameters:
- freqs: scalar or array astropy.units.Quantity
Frequency at which the model should be evaluated, in a frequency which can be converted to GHz using astropy.units. If an array of frequencies is provided, integrate using trapz with a equal weighting, i.e. simulate a top-hat bandpass.
- weights: np.array, optional
Array of weights describing the frequency response of the instrument, i.e. the bandpass. Weights are normalized and applied in Jy/sr.
- Returns:
- outputastropy.units.Quantity
Simulated map at the given frequency or integrated over the given bandpass. The shape of the output is (3,npix) for polarized components, (1,npix) for temperature-only components. Output is in
uK_RJ
.
- get_filename()[source] [edit on github]¶
Get SZ filenames for a websky version