Limit First Order Region (FOR) Based on Maximum Radial Velocity
Source:R/SeaSondeRCS_FOR.R
seasonder_limitFORCurrentRange.RdThis function removes Doppler bins from the detected First Order Region (FOR) if their corresponding radial velocity exceeds a predefined maximum threshold.
Details
Steps in Current Range Limiting:
Retrieve Maximum Velocity Threshold:
Extracts the
currmaxparameter fromseasonder_getFOR_parameters.
Obtain Current FOR Detection Results:
Retrieves the existing FOR Doppler bin indices from
seasonder_getSeaSondeRCS_FOR.
Compute Radial Velocities for Doppler Bins:
Calls
seasonder_getBinsRadialVelocityto convert Doppler bins into radial velocities.
Identify Bins Exceeding Maximum Velocity:
Finds the Doppler bins where the absolute radial velocity is greater than or equal to
currmax.
Filter Out Exceeding Bins:
Uses
setdiffto remove bins exceedingcurrmaxfrom the FOR region.
Store Updated FOR Data in Object:
Updates the
SeaSondeRCSobject with the filtered FOR results.
This function ensures that only Doppler bins corresponding to physically realistic radial velocities are included in the first-order Bragg region.
See also
seasonder_getBinsRadialVelocityfor computing radial velocities.seasonder_getSeaSondeRCS_FORfor retrieving FOR bin indices.seasonder_setSeaSondeRCS_FORfor storing updated FOR data.