Identify Nulls in First Order Region (FOR) Across All Range Cells
Source:R/SeaSondeRCS_FOR.R
seasonder_findFORNulls.RdThis function locates the null points in the First Order Region (FOR) of a SeaSondeR cross-spectral object. It smooths the self-spectra (SS) data, extracts the relevant Doppler bins, and determines the boundaries of the first-order Bragg region for each range cell.
Details
The function follows these steps:
Smooth the Self-Spectra Data: Calls
seasonder_SmoothFORSSto apply a running mean filter.Extract Smoothed Self-Spectra: Retrieves the processed SS matrix using
seasonder_getSeaSondeRCS_FOR_SS_Smoothed.Identify the Doppler Center Bin: Determines the central Doppler bin using
seasonder_getCenterDopplerBin.Segment the Spectrum: Splits the smoothed SS data into:
The negative Bragg region (left side of the Doppler spectrum).
The positive Bragg region (right side of the Doppler spectrum).
Find Nulls in Each Region: Uses
seasonder_findFORNullsInSSMatrixto identify the null positions.Store Results: Extracts:
The First Order Region (
FOR).The maximum power (
MAXP).The Doppler bin index of the maximum power (
MAXP.bin).
Update the SeaSondeRCS Object: Saves the detected FOR boundaries and related metrics.
See also
seasonder_findFORNullsInSpectrumfor processing individual spectra.seasonder_findFORNullsInSSMatrixfor batch processing spectra across multiple range cells.seasonder_getSeaSondeRCS_FOR_SS_Smoothedfor retrieving smoothed SS data.