Open ctuguinay opened 2 months ago
The short read
error is probably the EK software abruptly ending the file write, but perhaps there's a way to retrieve the data that has been written properly instead of just losing it completely to this error.
cannot reindex
error stems from the fact that the ping times have duplicate values in them:
I think a simple drop_duplicates
in the set groups stage would fix this problem: https://docs.xarray.dev/en/stable/generated/xarray.Dataset.drop_duplicates.html.
For the The DType <class 'numpy.dtypes.DateTime64DType'> could not be promoted by <class 'numpy.dtypes.Float64DType'>. This means that no common DType exists for the given inputs. For example they cannot be stored in a single array unless the dtype is
object. The full list of DTypes is: (<class 'numpy.dtypes.DateTime64DType'>, <class 'numpy.dtypes.Float64DType'>)
exception, we have the following:
where we are missing channel-specific environmental variable information.
The set groups then errors out here:
because the last ds_env
is empty:
Broadcasting can be done onto the empty dataset in ds_env
that can allow it to be merged:
Edit: Another simpler way to solve this is to remove sorted channels where the parser power
is empty.
Some errors I found while converting all of 2017 and 2021 files using the latest Echopype main branch: