def rj2cmb(nu_in):
    '\n    Conversion from Rayleigh-Jeans units to CMB temperature units\n\n    Arguments\n    ---------\n    nu_in : float\n        Frequency in GHz.\n\n    Returns\n    -------\n    cal_fac : float\n        Number by which to multiply a RJ temperature to get a CMB temp\n    '
    k = 1.38064852e-23
    h = 6.62607004e-34
    T = 2.72548
    nu = (nu_in * 1000000000.0)
    x = (((h * nu) / k) / T)
    return (((np.exp(x) - 1.0) ** 2) / ((x ** 2) * np.exp(x)))
Conversion from Rayleigh-Jeans units to CMB temperature units

Arguments
---------
nu_in : float
    Frequency in GHz.

Returns
-------
cal_fac : float
    Number by which to multiply a RJ temperature to get a CMB temp
def rj2cmb(nu_in):
    '\n    Conversion from Rayleigh-Jeans units to CMB temperature units\n\n    Arguments\n    ---------\n    nu_in : float\n        Frequency in GHz.\n\n    Returns\n    -------\n    cal_fac : float\n        Number by which to multiply a RJ temperature to get a CMB temp\n    '
    k = 1.38064852e-23
    h = 6.62607004e-34
    T = 2.72548
    nu = (nu_in * 1000000000.0)
    x = (((h * nu) / k) / T)
    return (((np.exp(x) - 1.0) ** 2) / ((x ** 2) * np.exp(x)))