Skip to content

Change horizontal grid NetCDF version for efficiency when saving.#97

Draft
AidanJanney wants to merge 3 commits into
NCAR:mainfrom
AidanJanney:main
Draft

Change horizontal grid NetCDF version for efficiency when saving.#97
AidanJanney wants to merge 3 commits into
NCAR:mainfrom
AidanJanney:main

Conversation

@AidanJanney
Copy link
Copy Markdown
Collaborator

@AidanJanney AidanJanney commented May 26, 2026

When working with high resolution grids, saving the grid can be very intensive with NETCDF3_64BIT format (sometimes taking 5-10 minutes). We can change this to be NETCDF4 format. This may cause issues with CESM; more testing is needed.

Edit: Originally used compression with zlib which I thought was faster from initial testing, but standard netcdf4 format without compression is actually fastest and avoids possible errors. Saving with netcdf4 instead of netcdf3_64bit results in an order of magnitude speedup for smaller grids, and even greater savings for larger grids.

@AidanJanney AidanJanney changed the title Change netcdf version for efficiency with large grids. Change horizontal grid NetCDF version for efficiency when saving. May 26, 2026
@AidanJanney AidanJanney marked this pull request as ready for review May 28, 2026 16:26
@AidanJanney AidanJanney marked this pull request as draft May 28, 2026 20:13
@AidanJanney
Copy link
Copy Markdown
Collaborator Author

Need to test compatibility with CIME. Netcdf3 may only be needed for the ESMF mesh. We may also be able to change versions for topo and other files.

@AidanJanney AidanJanney self-assigned this May 28, 2026
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

Successfully merging this pull request may close these issues.

1 participant