Skip to content
Discussion options

You must be logged in to vote

In netCDF-C (when using the NetCDF-4 format), chunking directly affects how much data must be read from disk for each access.

Key points:

  • Chunks are the smallest unit of I/O. Even if an application reads a small hyperslab, the entire chunk containing that region must be loaded.
  • If chunk dimensions do not align with the typical access pattern, the library may need to read multiple chunks for a single request, increasing I/O overhead.
  • Aligning chunk shapes with common query patterns (for example time-slice reads vs spatial reads) can significantly reduce unnecessary reads.

The chunk cache configured through nc_set_chunk_cache helps mitigate this by storing recently accessed chunks in memo…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Monolith667
Comment options

Answer selected by Monolith667
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants