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

Investigate ncrcat for combining stats files? #308

Closed
nordam opened this issue Sep 20, 2024 · 1 comment
Closed

Investigate ncrcat for combining stats files? #308

nordam opened this issue Sep 20, 2024 · 1 comment

Comments

@nordam
Copy link
Collaborator

nordam commented Sep 20, 2024

The command line tool ncrcat can combine netcdf files along a record dimension (commonly time). If we defined the dimension "index" as a record dimension, and made sure it was increasing across files, we could use ncrcat. Not sure if this would be faster than using open_mfdataset, but maybe worth looking into? Note that it would require different threads to somehow keep, and syncronise, a running particle count, so it might not be feasible in practice.

@nepstad
Copy link
Collaborator

nepstad commented Oct 9, 2024

Version 2.5.11 introduced a new method for merging netcdf files which should solve the merge speed issue. Particle counts are available in the image_stats group in the netcdf files.

@nepstad nepstad closed this as completed Oct 9, 2024
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

2 participants