WebSkyCIB

class so_pysm_models.WebSkyCIB(websky_version='0.3', input_units='MJy / sr', nside=4096, interpolation_kind='linear', map_dist=None, verbose=False, local_folder=None, coord='C')[source] [edit on github]

Bases: InterpolatingComponent

PySM component interpolating between precomputed maps

PySM component interpolating between precomputed maps

In order to save memory, maps are converted to float32, if this is not acceptable, please open an issue on the PySM repository. When you create the model, PySM checks the folder of the templates and stores a list of available frequencies. Once you call get_emission, maps are read, ud_graded to the target nside and stored for future use. This is useful if you are running many channels with a similar bandpass. If not, you can call cached_maps.clear() to remove the cached maps.

It always returns a IQU map to avoid broadcasting issues, even if the inputs are I only.

Parameters
pathstr

Path should contain maps named as the frequency in GHz e.g. 20.fits or 20.5.fits or 00100.fits

input_unitsstr

Any unit available in PySM3 e.g. “uK_RJ”, “uK_CMB”

nsideint

HEALPix NSIDE of the output maps

interpolation_kindstring

Currently only linear is implemented

map_distpysm.MapDistribution

Required for partial sky or MPI, see the PySM docs

verbosebool

Control amount of output

Methods Summary

get_filenames(path)

Get filenames for a websky version For a standard interpolating component, we list files in folder, here we need to know the names in advance so that we can only download the required maps

read_map_by_frequency(freq)

Methods Documentation

get_filenames(path)[source] [edit on github]

Get filenames for a websky version For a standard interpolating component, we list files in folder, here we need to know the names in advance so that we can only download the required maps

read_map_by_frequency(freq)[source] [edit on github]