Skip to content

Unexpected behavior of "chunks" argument in open_mfdataset() #9119

Answered by dcherian
arthur-e asked this question in General
Discussion options

You must be logged in to vote

The chunks argument is applied on a per-file basis so this is expected.

We'd happily merge a PR making this point clear in the documentation:

chunks : int, dict, 'auto' or None, optional
Dictionary with keys given by dimension names and values given by chunk sizes.
In general, these should divide the dimensions of each dataset. If int, chunk
each dimension by ``chunks``. By default, chunks will be chosen to load entire
input files into memory at once. This has a major impact on performance: please
see the full documentation for more details [2]_.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dcherian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants