You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I first thought skipna=True does not make sense for uint array because NaN is a float, but I just noticed it would be inconvenient for Dataset containing float and uint.
Sent a PR.
I'm generating netCDF4 files that have a variety of variables that have values representing things that are integer in nature and can't physically be negative. So to save space and provide as much bandwidth in the variable, I was careful to use float, int, unit types as appropriate. And then could not use resample with skipna because uint was not supported. I have gone back and made the uints into ints, skipna now works on my data, and I might now need to use 64 bit instead of 32 which defeats my efforts to keep the files as small as possible. It seems to me that if skipna is implemented for one or two types it should work for all of them.
It's also quite possible I've mistaken something - I'm an experienced programmer in C and MATLAB and very new to python and have learned the lard way that what's obvious in C or C++ is not so in python.
I would like to be able to use the skipna switch with unsigned integer types in netCDF4 files I'm processing with xarray.
Currently it appears to be unsupported:
Thanks,
Marinna
The text was updated successfully, but these errors were encountered: