deshima_sensitivity.physics module#
- T_from_psd(F: Union[ndarray, List[float], List[int], float, int], psd: Union[ndarray, List[float], List[int], float, int], method: str = 'Planck') Union[ndarray, List[float], List[int], float, int] [source]#
Calculate Planck temperature from the PSD frequency (frequencies).
- Parameters:
F (Union[ndarray, List[float], List[int], float, int]) – Frequency. Units: Hz.
psd (Union[ndarray, List[float], List[int], float, int]) – Power Spectral Density. Units: W / Hz.
method (str) – Default: ‘Planck’. Option: ‘Rayleigh-Jeans’.
- Returns:
Planck temperature. Units: K.
- Return type:
T
- johnson_nyquist_psd(F: Union[ndarray, List[float], List[int], float, int], T: Union[ndarray, List[float], List[int], float, int]) Union[ndarray, List[float], List[int], float, int] [source]#
Johnson-Nyquist power spectral density.
Don’t forget to multiply with bandwidth to caculate the total power in W.
- Parameters:
F (Union[ndarray, List[float], List[int], float, int]) – Frequency. Units: Hz.
T (Union[ndarray, List[float], List[int], float, int]) – Temperature. Units: K.
- Returns:
Power Spectral Density. Units: W / Hz.
- Return type:
psd
- nph(F: Union[ndarray, List[float], List[int], float, int], T: Union[ndarray, List[float], List[int], float, int]) Union[ndarray, List[float], List[int], float, int] [source]#
Photon occupation number of Bose-Einstein Statistics.
If it is not single temperature, use nph = Pkid / (W_F * h * F).
- Parameters:
F (Union[ndarray, List[float], List[int], float, int]) – Frequency. Units: Hz.
T (Union[ndarray, List[float], List[int], float, int]) – Temperature. Units: K.
- Returns:
Photon occupation number. Units: None.
- Return type:
n
- rad_trans(rad_in: Union[ndarray, List[float], List[int], float, int], medium: Union[ndarray, List[float], List[int], float, int], eta: Union[ndarray, List[float], List[int], float, int]) Union[ndarray, List[float], List[int], float, int] [source]#
Calculates radiation transfer through a semi-transparent medium.
One can also use the same function for Johnson-Nyquist PSD (power spectral density) instead of temperature.
- Parameters:
rad_in (Union[ndarray, List[float], List[int], float, int]) – Brightness temperature (or PSD) of the input. Units: K (or W/Hz).
medium (Union[ndarray, List[float], List[int], float, int]) – Brightness temperature (or PSD) of the lossy medium. Units: K (or W/Hz).
eta (Union[ndarray, List[float], List[int], float, int]) – Transmission of the lossy medium. Units: K (or W/Hz).
- Returns:
Brightness temperature (or PSD) of the output.
- Return type:
rad_out