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

accept a list of netcdf paths #30

Closed
rabernat opened this issue Jan 20, 2019 · 4 comments
Closed

accept a list of netcdf paths #30

rabernat opened this issue Jan 20, 2019 · 4 comments
Assignees

Comments

@rabernat
Copy link

rabernat commented Jan 20, 2019

Xarray's open_mfdataset function accepts a wildcard (passed to glob) OR an explicit list of paths to open.

Intake, however, currently only supports the wildcard option
https://github.com/ContinuumIO/intake-xarray/blob/4985727425b2b6fa75237d40f3163b404d926dc0/intake_xarray/netcdf.py#L29-L31

What I would like is to have a catalog like this:

sources:
  some_dataset:
    driver: netcdf
    args:
      urlpath:
        - file1.nc
        - file2.nc

and have this get translated as xr.open_mfdataset(['file1.nc', 'file2.nc']).

This is both more urgent (to me!) and more doable than #29.

@jsignell jsignell self-assigned this Jan 23, 2019
@jsignell
Copy link
Member

I agree. Making the netcdf plugin accept more inputs has been on my todo list for a while.

@jsignell
Copy link
Member

closed by #22

@rabernat
Copy link
Author

Wow that was fast! Thanks @jsignell!

So the example catalog syntax I provided in my issue above should now work?

@jsignell
Copy link
Member

Should work :) please try it out! I am doing a release of 0.3.0 right now.

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

No branches or pull requests

2 participants