-
Notifications
You must be signed in to change notification settings - Fork 9
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
Consider using netcdf4 groups in SWALS to combine multidomain outputs into a single file #10
Comments
While not related to netcdf directly, pull request #22 has reduced the number of output files. |
While not exactly matching the point above, this can be done in a post-processing step using e.g.
from inside a multidomain folder. The resulting file can be viewed with ncview, and read with R's ncdf4 package. It would be better to improve the group names (to include the domain folder). The above is at least useful for testing, or, could be an alternative way to manage the file counts. We could also introduce some compression, e.g.
|
|
This version iteratively adds netcdf files into groups, while using group names to reflect the directory structure. Run from the multidomain directory.
We can also put grids and gauges in the one file
|
Currently SWALS writes multiple output files for each domain:
For large multidomains with hundreds of domains, this can lead to > 1000 files for a single model run.
An alternative is to use netcdf groups to combine gauge/grid outputs from each domain in a single netcdf file.
A potential downside is that netcdf-groups might not play nicely with some other tools (like ncview). So ideally the netcdf-group format could be implemented as a compile-time option, with post-processing routines seamlessly working with either format.
The text was updated successfully, but these errors were encountered: