fredrik-1

Results 12 comments of fredrik-1

The actual timing can be 10 seconds vs half an hour. The difference in time is also largest when the total download is relatively large (but the problematic slice might...

I doubt that. Why should it take maybe 800 times longer to download with t=[0,2] compared to downloading an extra time point using t=[0,2,2]? I would think that a structured...

I tried to looked at the actual code based on the information in ticket 325. The speed difference when using arrays and lists disappear if I change line 273 in...

Ok, I think I understand. _StartCountStride in utils.py divide the data matrix into parts of length 1 if an "unstructured" array or list is used. Each part is then read...

The difference in speed is larger for NETCDF4 files than for NETCDF3 files but it is still almost a factor of 10 for the NETCDF3 files when I run the...

I would suggest to change the line `if ee and len(e) == len(ee) and (e == np.arange(start,stop,step)).all():` to `if ee and e[1]-e[0]==1 and len(e) == len(ee) and (e == np.arange(start,stop,step)).all():`...

> Are you saying the python interface should not try to use nc_get_vars for strided reads? Why should it when nc_get_vars is (sometimes at least) much slower than the already...

I don't understand your answers. netCDF4.Dataset is supposed to work when the index is a sequence of indices, i.e. for example [0, 4,2, 10] or np.array([0,1,2, 10]). This seems to...

I wrote pull request #681 that I believe solves the issue. It works as expected in my tries.