center_of_mass#

echopype.metrics.center_of_mass(ds: xarray.core.dataset.Dataset, range_label='echo_range') xarray.core.dataarray.DataArray#

Calculates the mean backscatter location [unit: m].

This quantity is the weighted average of backscatter along range (echo_range).

Parameters
dsxr.Dataset
range_labelstr

Name of an xarray DataArray in ds containing echo_range information.

Returns
xr.DataArray