ppcpy.retrievals.collection#

Functions

calc_snr

Calculate signal-to-noise ratio (SNR).

ppcpy.retrievals.collection.calc_snr(signal, bg)[source]#

Calculate signal-to-noise ratio (SNR).

TODO: could have also been in helpers, but that seems more on organizing stuff… while this is an calculation, in the matlab version this function is used more than 20 times

Parameters:#

signalnumpy.ndarray

Signal strength.

bgnumpy.ndarray

Background noise.

Returns:#

SNRnumpy.ndarray

Signal-to-noise ratio. For negative signal values, the SNR is set to 0.

References:#

  • Heese, B., Flentje, H., Althausen, D., Ansmann, A., and Frey, S.: Ceilometer lidar comparison: backscatter coefficient retrieval and signal-to-noise ratio determination, Atmospheric Measurement Techniques, 3, 1763-1770, 2010.

History:#

  • 2021-04-21: First edition by Zhenping

  • 2024-12-10: Translated with AI, moved to own function