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

Support multiple NetCDF files, similar to MFDataset with netcdf4-python #12

Open
bladwig1 opened this issue Oct 3, 2017 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@bladwig1
Copy link
Contributor

bladwig1 commented Oct 3, 2017

Netcdf4-python allows multiple NetCDF files to be opened and treated as one big file. A user has requested the same ability for PyNIO.

@bladwig1 bladwig1 added the enhancement New feature or request label Oct 3, 2017
@cbarrick
Copy link

cbarrick commented Oct 8, 2017

xarray does this. They offer a multi-file dataset feature and can use PyNIO as a backend to open files. xarray can also use dask to stream the data from disk for out-of-core learning.

@linlintamu
Copy link

To confirm, does it mean that the current version of Nio.open_file() only support a single file open at once?

Since I have multiple monthly data spanning several years, seems I cannot open them all using Nio.open_file().

Also, though they cannot be open at once using Nio.open_file(), it is not straightforward to stack the data when I loop Nio.open_file() to read each file.

Any solutions?

Thanks

@linlintamu
Copy link

A following up question.

Even though xarray can open multiple files at once, I found that applying Ngl.vinth2p() to data opened by xarray yields unreasonable results.

Does it mean Ngl.vinth2p() should come along with data opened by Nio?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants