You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How do I use io_chunks to let xee auto-compute a chunk size relative to the request byte limit? #166
# By default, automatically optimize io_chunks.
self.chunks = self._auto_chunks(max_dtype, request_byte_limit)
if chunks == -1:
self.chunks = -1
elif chunks is not None and chunks != 'auto':
self.chunks = self._assign_index_chunks(chunks)
io_chunks (optional): Specifies the chunking strategy for loading data
from EE. By default, this automatically calculates optional chunks based
on the `request_byte_limit`.
The above is source code in xee that is supposed to automatically optimize io_chunks based on the request byte size (which is defined in the source code as approximately 48 MBs) when chunks=None. However, when I set chunks=None when running xarray.open_dataset I get back an xarray Dataset that is not chunked at all. What am I missing here?
I feel like I'm missing something obvious here, but just taking this sample code snippet from the xee readme and printing ds shows that the data variables are just xarray DataArrays and not Dask arrays. By putting in chunks=None, it should have auto-computed a chunk size and chunked the dataset, no?
Activity
naschmitz commentedon Sep 17, 2024
Could you add a code sample to reproduce?
chunks=Noneshould automatically set an appropriate chunk size.adrianom-gh commentedon Oct 21, 2024
I feel like I'm missing something obvious here, but just taking this sample code snippet from the xee readme and printing
dsshows that the data variables are just xarray DataArrays and not Dask arrays. By putting inchunks=None, it should have auto-computed a chunk size and chunked the dataset, no?