deshima_sensitivity.physics module#

T_from_psd(F: ndarray | List[float] | List[int] | float | int, psd: ndarray | List[float] | List[int] | float | int, method: str = 'Planck') ndarray | List[float] | List[int] | float | int[source]#

Calculate Planck temperature from the PSD frequency (frequencies).

Parameters:
  • F (ndarray | List[float] | List[int] | float | int) – Frequency. Units: Hz.

  • psd (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: ndarray | List[float] | List[int] | float | int, T: ndarray | List[float] | List[int] | float | int) 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 (ndarray | List[float] | List[int] | float | int) – Frequency. Units: Hz.

  • T (ndarray | List[float] | List[int] | float | int) – Temperature. Units: K.

Returns:

Power Spectral Density. Units: W / Hz.

Return type:

psd

nph(F: ndarray | List[float] | List[int] | float | int, T: ndarray | List[float] | List[int] | float | int) 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 (ndarray | List[float] | List[int] | float | int) – Frequency. Units: Hz.

  • T (ndarray | List[float] | List[int] | float | int) – Temperature. Units: K.

Returns:

Photon occupation number. Units: None.

Return type:

n

rad_trans(rad_in: ndarray | List[float] | List[int] | float | int, medium: ndarray | List[float] | List[int] | float | int, eta: ndarray | List[float] | List[int] | float | int) 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 (ndarray | List[float] | List[int] | float | int) – Brightness temperature (or PSD) of the input. Units: K (or W/Hz).

  • medium (ndarray | List[float] | List[int] | float | int) – Brightness temperature (or PSD) of the lossy medium. Units: K (or W/Hz).

  • eta (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