pyart.retrieve.compute_spectral_power#
- pyart.retrieve.compute_spectral_power(spectra, units='dBADU', subtract_noise=False, smooth_window=None, signal_field=None, noise_field=None)[source]#
Computes the spectral power from the complex spectra in ADU. Requires key dBADU_to_dBm_hh or dBADU_to_dBm_vv in radar_calibration if the units are to be dBm
- Parameters:
spectra (Radar spectra object) – Object containing the required fields
units (str) – The units of the returned signal. Can be ‘ADU’, ‘dBADU’ or ‘dBm’
subtract_noise (Bool) – If True noise will be subtracted from the signal
smooth_window (int or None) – Size of the moving Gaussian smoothing window. If none no smoothing will be applied
signal_field, noise_field (str, optional) – Name of the fields in radar which contains the signal and noise. None will use the default field name in the Py-ART configuration file.
- Returns:
pwr_dict (field dictionary) – Field dictionary containing the spectral power