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

Problems with handling irregular burst in RBR D|wave processing #79

Open
ssuttles-usgs opened this issue Oct 25, 2022 · 3 comments
Open

Comments

@ssuttles-usgs
Copy link
Collaborator

Processing RBR D|wave burst pressure data using runrskcsv2cdf.py script fails if there are incomplete (or irregular) bursts, except when it is the last burst in the burst.txt file. Existing code in rsk.csv2cdf.py relies on all bursts, except the last one, to be exactly the length specified in samples_per_burst attribute, which it uses to shape the burst data into (time, sample) dimensions. I have encountered burst data that had an irregular burst in the middle of the deployment, but had good bursts otherwise, and the only way to get the good data to process was to manually remove the bad burst(s) from the burst.txt file.

Suggest using burst counter and time stamp in the burst.txt file to check consistency of each burst, and if a bad burst is encountered, fill(trim) missing(extra) values, and proceed. Also look for any unexpected events in the events.txt file, and if encountered warn user to further investigate potential issues with the deployment.

@dnowacki-usgs
Copy link
Member

Yes, malformed files like this can be a bear to deal with. I think having a checker looking for the things you suggest is the right way to do it, and then warn the user about the malformed file.

@ocheriton
Copy link

Just chiming in to say that I am also encountering this issue (an incomplete burst in the middle of otherwise fine RBR pressure record) and it is turning out to be a real headache to deal with. I am going to try chopping the burst file into two files, but even this is tricky ... the file is so big my text editor program keeps getting hung up. Before I go too far down this road, does the runrskcsv2cdf.py script only use the burst csv file?

@ssuttles-usgs
Copy link
Collaborator Author

ssuttles-usgs commented Aug 22, 2023 via email

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