Jeff Whitaker
Jeff Whitaker
I discovered that slicing a 1d variable with an all False boolean index array does return an empty array (consistent with numpy). An exception is raised on when slicing multi-dimensional...
> There should at least be a warning. I am not convinced - curious what others think. Seems to me if you slice with an all False boolean array, you...
Plus the fact that this is what numpy does is a pretty big precendent.
Decided to go with PR #1198 instead, based on the discussion at issue #1200
Hmm - interesting
Seems to only occur if HDF5 is the underlying file format, if you add `format="NETCDF3_64BIT"` when the datasets are created then the test passes. This suggests it's due to the...
still no idea why this occurs or how to fix it. I'll leave this issue open in case someone has something to contribute.
works for me ```python >>> from netCDF4 import Dataset >>> nc = Dataset('https://thredds.met.no/thredds/dodsC/arcticdata/obsSynop/04320') >>> nc root group (NETCDF3_CLASSIC data model, file format DAP2): featureType: timeSeries title: SYNOP data from station...
Must be an issue with the linked netcdf-c and/or curl libs - has nothing to do with the python interface itself. Can you try with the conda package?
Behavior is consistent with numpy. Also, indexing 1d variables with boolean index arrays that are all False already return empty arrays (but for variables with more than one dimension an...