Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added detection of "*" to enable opening of multi-file datasets #393

Closed
wants to merge 0 commits into from

Conversation

agstephens
Copy link
Contributor

Change Summary

When intake_esm.source._open_dataset() is called, it now looks for "*" in the path and it will choose to open the dataset with xarray.open_mfdataset() instead of xarray.open_dataset(). This allows intake records to specify a glob pattern rather than an exact path.

Related issue number

#385

Some tests have been added in: tests/test_source.py. All the tests still run in my sandbox.

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable

@andersy005
Copy link
Member

Thank you for putting this together, @agstephens! Sorry, I corrupted your main branch when I tried to push some changes to it. I am going to open another PR with your changes and I will ping you there

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.

None yet

2 participants