This function applies a smoothing operation to the self-spectra (SS) matrix of a specific antenna in a SeaSondeR cross-spectral object. The smoothing is performed using a sliding mean over a specified number of Doppler bins.
Arguments
- seasonder_cs_object
- A - SeaSondeRCSobject containing self-spectra data.
- antenna
- A character or numeric identifier of the antenna whose self-spectra will be smoothed. 
- smoothing
- Optional. An integer specifying the number of Doppler bins used for smoothing. If - NULL, the function retrieves the default smoothing factor (- nsm) from- seasonder_getFOR_parameters.
Details
The smoothing process is performed using a centered sliding mean filter with a window of nsm bins.
The window extends symmetrically before and after each bin, with adjustments based on whether nsm
is even or odd:
- If - nsmis even, the window includes- nsm/2bins before and after the target bin.
- If - nsmis odd, the window includes- (nsm - 1)/2bins before and- (nsm - 1)/2 + 1bins after.
The function utilizes slide_mean to apply the smoothing operation row-wise
across the self-spectra matrix.
This smoothing implementation mimics the one performed by the tool AnalyzeSpectra of CODAR's Radial Suite R8.
See also
- seasonder_getFOR_parametersfor retrieving default- nsmvalues.
- seasonder_getSeaSondeRCS_antenna_SSdatafor accessing self-spectra data.
- slide_meanfor applying the sliding window mean operation.