swap_dims_channel_frequency#

echopype.preprocess.swap_dims_channel_frequency(ds: xarray.core.dataset.Dataset) xarray.core.dataset.Dataset#

Use frequency_nominal in place of channel as dataset dimension and coordinate.

This is useful because the nominal transducer frequencies are commonly used to refer to data collected from a specific transducer.

Parameters
dsxr.Dataset

Dataset for which the dimension will be swapped

Returns
The input dataset with the dimension swapped