center_of_mass

Contents

center_of_mass#

echopype.metrics.center_of_mass(ds: Dataset, range_label='echo_range') 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