Skip to content
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

add capability to remove more than one "incomplete" burst from the end of a file #180

Open
rallen-usgs opened this issue Jan 17, 2024 · 3 comments

Comments

@rallen-usgs
Copy link
Contributor

In the recent vector data, I have found there is often more than one incomplete burst at the end. I'm not totally sure why, but I think perhaps it's because the instrument is connected to while a burst is being collected, and then it starts to get a new burst. The dat2cdf code works fine, but the cdf2nc code gets hung up by this, probably because there is more than one burst that is not full. I'm not sure of the best way to handle this, but at the moment I've been editing the output files by hand, which I'm sure is not the best way. Happy to submit example vector files if that would help.

@ssuttles-usgs
Copy link
Collaborator

ssuttles-usgs commented Jan 17, 2024 via email

@dnowacki-usgs
Copy link
Member

dnowacki-usgs commented Jan 17, 2024

Thanks Rachel. It would be good to see a file that has this issue. Assuming a full burst has 1024 samples, is it something like

burstnum   1    2    3    ...  N-2  N-1  N
numsamples 1024 1024 1024 ...  1024 965  1005

i.e. the length of the two truncated bursts is random?

@rallen-usgs
Copy link
Contributor Author

Yes, I think so. I'm attaching here files from DMP23XL201vec, a vector that was used simply to log an acoustic backscatter sensor (AnalogInput1). You can see that bursts 531-534 are shorter than all the others; burst 534 is the last one.

I haven't attached gatt or config files - do you want those?

DMPXLB03.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants