Skip to content

Perf: use Scipy engine by default for netcdf3? #887

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

Closed
mangecoeur opened this issue Jun 19, 2016 · 2 comments
Closed

Perf: use Scipy engine by default for netcdf3? #887

mangecoeur opened this issue Jun 19, 2016 · 2 comments

Comments

@mangecoeur
Copy link
Contributor

Not really a bug, but I'm finding that the scipy backend is considerably faster than the netCDF backend for netCDF 3 files (using dataset: http://rda.ucar.edu/datasets/ds093.1/). Using Anaconda python with MKL. Not sure if this is always faster, but if it is perhaps xarray should default to scipy backend for netCDF 3 files?

@shoyer
Copy link
Member

shoyer commented Jun 20, 2016

Yes, I have found this to be true in my experience, as well. The scipy backend also works more smoothly when using multiple threads with dask, because it releases the GIL.

I would be happy to accept a patch that adds this as the default behavior. We would need to detect netCDF3 vs netCDF4 files automatically when doing file reading by looking at the first few bytes from the file. See these docs for file format specs, which include the necessary details:
https://www.hdfgroup.org/HDF5/doc/H5.format.html#Superblock
http://www.unidata.ucar.edu/software/netcdf/docs/file_format_specifications.html

@stale
Copy link

stale bot commented Jan 27, 2019

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity
If this issue remains relevant, please comment here; otherwise it will be marked as closed automatically

@stale stale bot added the stale label Jan 27, 2019
@stale stale bot closed this as completed Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants