skymodel.convert_units¶
- skymodel.convert_units(freq, values, cmb2mjy=False, mjy2cmb=False, rj2mjy=False, mjy2rj=False, cmb2rj=False, rj2cmb=False)¶
Convert observed signal at given frequencies to different units.
- Parameters
- freq: float or float array
Frequency in Hz.
- values: float or float array
Measured signal.
- cmb2mjy: bool, optional
If True, the input is assumed to be K_CMB, the output will be MJy/sr. Default: False
- mjy2cmb: bool, optional
If True, the input is assumed to be MJy/sr, the output will be K_CMB. Default: False
- rj2mjy: bool, optional
If True, the input is assumed to be K_RJ, the output will be MJy/sr. Default: False
- mjy2rj: bool, optional
If True, the input is assumed to be MJy/sr, the output will be K_RJ. Default: False
- cmb2rj: bool, optional
If True, the input is assumed to be K_CMB, the output will be K_RJ. Default: False
- rj2cmb: bool, optional
If True, the input is assumed to be K_RJ, the output will be K_CMB. Default: False
- Returns
- converted_signal: float or float array
Converted signal