Skip to contents

This function applies a proximity-based rejection test to all detected First Order Region (FOR) peaks in a SeaSondeRCS object. Peaks that are too far from their corresponding Bragg indices are removed, ensuring that only valid Bragg signals are retained.

Usage

seasonder_rejectDistantBragg(seasonder_cs_object)

Arguments

seasonder_cs_object

A SeaSondeRCS object containing the spectral data and FOR parameters.

Value

The updated SeaSondeRCS object with the filtered FOR bins.

Details

Reason for the Test: The function filters out peaks in the FOR that are not closely associated with expected Bragg indices. These distant peaks could result from interference, noise, or other non-Bragg sources, potentially leading to erroneous current velocity vectors. This ensures that only physically valid Bragg signals are used in the processing pipeline.

Steps:

  1. Retrieve Current FOR Data:

  2. Apply Rejection Test:

    • Iterates over each range cell and each Bragg region (positive_FOR and negative_FOR).

    • Calls seasonder_rejectDistantBraggPeakTest for each peak to evaluate its proximity to the Bragg indices.

    • Peaks that fail the test are removed (replaced with an empty vector).

  3. Store Updated FOR Data:

This function is part of the FOR processing workflow and should be applied after the initial detection of Bragg peaks.

References

COS. SpectraPlotterMap 12 User Guide. CODAR Ocean Sensors (COS), Mountain View, CA, USA, 2016.

See also