-
Notifications
You must be signed in to change notification settings - Fork 35
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
InexactError while parsing nodata values #239
Comments
I know what's going on here. Basically -9999 isn't supported by UInt8 (and many other Int types), so I need to convert Integer rasters to something like Int64 right away. Will have this fixed today. |
@vlandau thanks for your explanation. Does that mean it would work if the values in the input rasters were not integer but float? |
Yep! If you need it to work immediately it should be fine if you convert your input rasters to Float32 for now. |
Not that much in a rush - was just eager to understand. Thanks again. |
The pull request linked above should fix it. Tests take about 30 minutes to complete, and once they do, I'll merge with master and you should be good to go. Thanks for testing out the new .tif reading capabilities and discovering this issue! |
Should we make a new release? |
It looks like we haven't released a version with tif reading at all yet, so anyone installing from the Julia registry won't face this bug (but also won't have tif reading supported). @ranjanan and I were talking about doing a new minor release though. |
BTW, i've installed from your latest commit on your PR and it works fine now. I believe this can be closed. |
I'm going to wait to close until I finalize the PR. |
I am running Julia 1.3.1 and circuitscape dev (adding my project and manifest file along with the ini and raster files).
The patches file only contains 1 pair. I will also add that the rasters were generated with GRASS GIS 7.6.
The ini file, the rasters and the toml files:
https://drive.google.com/drive/folders/1X_JmaWdS5OHvdNzyEcvv19VybhuMv74Z?usp=sharing
The error is:
The text was updated successfully, but these errors were encountered: