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

Support netcdf-4 compression & chunking #914

Closed
anton-seaice opened this issue Nov 21, 2023 · 1 comment · Fixed by #928
Closed

Support netcdf-4 compression & chunking #914

anton-seaice opened this issue Nov 21, 2023 · 1 comment · Fixed by #928

Comments

@anton-seaice
Copy link
Contributor

anton-seaice commented Nov 21, 2023

Currently support for netcdf-4 features in CICE is pretty limited. Netcdf supports chunking and compression.

When implemented, #862 will let CICE standalone output netcdf-4 files when it is built using the io_pio directory. (The nuopc driver also has options to configure netcdf-4)

It would be good to add support for the extra features like chunking and compression (we would use in it in the ACCESS model). This would need a namelist option (e.g. netcdf4_options) which would be something like:

netcdf4_options = deflate_level, chunksize_x, chunksize_y

This option would only be relevant if the iotype is one of the netcdf4 types (netcdf4c or netcdf4p), otherwise it would be ignored.

For code changes, in all the places pio_def_var() is used we would need to add:

This change would mean the io_pio build is ahead of the io_netcdf build. Builds using the io_netcdf files would only be using netcdf-3 / classic.

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

Successfully merging a pull request may close this issue.

2 participants