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
SeaSondeRCS
object 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
) fromseasonder_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
nsm
is even, the window includesnsm/2
bins before and after the target bin.If
nsm
is odd, the window includes(nsm - 1)/2
bins before and(nsm - 1)/2 + 1
bins 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_parameters
for retrieving defaultnsm
values.seasonder_getSeaSondeRCS_antenna_SSdata
for accessing self-spectra data.slide_mean
for applying the sliding window mean operation.