seasonder_NormalizedDopplerFreq2Bins {SeaSondeR}R Documentation

Convert Normalized Doppler Frequencies to Doppler Bins

Description

This function converts a set of normalized Doppler frequencies into their corresponding Doppler bin indices within a SeaSondeR object.

Usage

seasonder_NormalizedDopplerFreq2Bins(seasonder_cs_object, doppler_values)

Arguments

seasonder_cs_object

A SeaSondeR cross-spectral object containing metadata about the Doppler bins.

doppler_values

A numeric vector specifying the normalized Doppler frequencies to be converted into bin indices.

Details

This function first retrieves the list of normalized Doppler frequencies from the given SeaSondeR object using seasonder_getDopplerBinsFrequency. The bin boundaries are computed using the first-order difference of these frequencies.

The function then applies findInterval to determine the corresponding bin index for each input Doppler frequency. The search process is affected by the following options:

After findInterval determines the bin indices, values that are out of range (bins < 1 or bins > nDoppler) are set to NA.

Value

An integer vector indicating the Doppler bin indices corresponding to the input normalized Doppler frequencies. Values that fall outside the valid bin range are assigned NA.

See Also

seasonder_Bins2NormalizedDopplerFreq for the inverse operation.


[Package SeaSondeR version 0.2.8 Index]