There are two functions in Echopype that align non-Echosounder data (Platform and Environment data) to Echosounder data time-wise: _var_time2_to_ping_timesel_interp, and harmonize_env_param_time. It would be good to have a standard function that does this time-wise alignment.
The function header can look something like this:
def align_to_ping_time(external_da: xr.DataArray, external_time_name: str, ping_time_da: xr.DataArray).
There are two functions in Echopype that align non-Echosounder data (Platform and Environment data) to Echosounder data time-wise:
_var_time2_to_ping_time
sel_interp
, andharmonize_env_param_time
. It would be good to have a standard function that does this time-wise alignment.The function header can look something like this:
def align_to_ping_time(external_da: xr.DataArray, external_time_name: str, ping_time_da: xr.DataArray)
.