Skip to content

Change default xarray_open_kwargs to use chunks="auto" #632

@dougiesquire

Description

@dougiesquire

Is your feature request related to a problem? Please describe.
Currently, by default, Intake-ESM opens files using chunks={}.
For netCDF files:

  • with xarray < v2023.09.0, this gives one chunk per file, which is sometimes a bad choice;
  • with xarray >= v2023.09.0, this gives the file chunking, which is often a bad choice.

Describe the solution you'd like
Default to chunks="auto" to use dask auto chunking. This should give better chunking in most cases.

Happy to submit a PR.

Describe alternatives you've considered
Passing the kwarg every time I use Intake-ESM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions