bandpass_unit_conversion

pysm3.bandpass_unit_conversion(freqs, weights=None, output_unit=None, input_unit=Unit('uK_RJ'), cut=1e-10)[source] [edit on github]

Unit conversion from input to output unit given a bandpass

The bandpass is always assumed in power units (Jy/sr) Gain weights below cut are removed.

Parameters:
freqsastropy.units.Quantity

Frequency array in a unit compatible with GHz

weightsnumpy array

Bandpass weights, if None, assume top-hat bandpass Weights are always assumed in (Jy/sr), whatever the input unit

output_unitastropy.units.Unit

Output unit for the bandpass conversion factor

input_unitastropy.units.Unit

Input unit for the bandpass conversion factor Default uK_RJ, the standard unit used internally by PySM

cutfloat

Normalized gains under this value are removed

Returns:
factorastropy.units.Quantity

Conversion factor in units of output_unit/input_unit