-
Notifications
You must be signed in to change notification settings - Fork 34
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
writing to netcdf changes dimensions and can result in ArgumentError #461
Comments
Floating point error is creeping in somehow. We save explicit position bounds for netcdf, its not really needed for floating point but very much is for dates. Maybe we can tweak this to be more type specific. Its embedded in the s = span(lookup(raster_from_nc, X)) You can see the values of the start and end of intervals don't match:
Somehow the code that is generating this vector is pushing the floating point errors in opposite directions, probably by starting the second range from a position offset by 1. The good news is that is fixable. The bad news is that no matter what we do you may get the wrong answer from What a pain. Also: there is an attempt at fixing some of this problem using |
Should be working on Rasters 0.8.1 and DD 0.24.14 |
I have a Raster with regular mapped Intervals on each axis in a tif file.
When writing this Raster to a netcdf and loading it back in, the points look different and I sometimes get an error when filtering using Contains().
This also works when just generating a Raster myself like so:
I can't find much of a pattern in which values throw an error and which don't. 7.15, 7.25, and 7.45 don't, but 7.55 does.
Writing to .tif does not give the same problem.
The text was updated successfully, but these errors were encountered: