-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method to add missing GPS data to platform group #201
Comments
@imranmaj : could you start tackling the first task as a standalone function? check out @ngkavin : I think the second task would require collaboration between you and @imranmaj. Could you suggest how the function argument should look like and where it should be called in the conversion sequence, and the 3 of us can discuss as a group? Thanks :) |
Hi @imranmaj, glad to have you helping to develop echopype . It seems like this function really only requires 1 input argument although more would accommodate more use-cases. That argument being the list of .nc/.zarr files that contain the platform information. This function could go anywhere between creating the
The base functionality could be splitting the GPS data while saving each .nc file, but more use-cases could involve adding the GPS data after everything has been combine so that |
Hi! Thanks for the help. I noticed that there's an attribute named |
No. Some EK80 raw files contain broadband as well as continuous wave backscatter data which are not saved in the same NetCDF file. In this case, the I will probably rename the variable to |
Thanks! When I try to open the files using
I believe this is because internally,
It looks like the |
I don't know what your GPS files look like, nor do I know what the |
@ngkavin : I'll send you link to the files, it's in our shared drive. |
xr.open_mfdataset(files, combine='nested', concat_dim='obs') |
Accidently closed, but xr.open_mfdataset(files, combine='nested', concat_dim='obs') works. |
Ah, I see, thank you. I was trying to combine |
This is supposed to closed long time ago. :) |
Some EK80 data sets come without the NMEA datagrams due to hardware config variations. This is a case similar to #198 in which some environmental data are also missing in AZFP files. Let's first deal with the case when the latitude/longitude data are saved in netCDF or zarr files.
Goal
Add a method to enable adding ancillary lat/lon data into converted files, when the source data file (recorded by the instrument) does not contain these data.
Task
Add a method
add_platform_data()
to theConvert
class that allows users to specify one or more nc/zarr files (will call this GPS files below) that can be opened by xarray and contain variables namedlatitude
andlongitude
, and save the lat/lon toPlatform
group. The method should:ping_time
start and end of the acoustic data in theBeam
group, andMake the
add_platform_data()
function work with either whole bunch of individual files, each individually converted to nc/zarr, or a single combined output file from a list of individual files (i.e., thecombine=True
option).Note: this functionality should be added to the
class-redesign
branch.The text was updated successfully, but these errors were encountered: