-
Notifications
You must be signed in to change notification settings - Fork 80
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
Cache flag not working? #477
Comments
Thanks for this. Would you mind:
|
Hi @snowman2,
Result:
ENV:
|
I think I have figured out what is going on here: The concept of By default, the files are opened using the xarray CachingFileManager. Though, you can disable that with |
As a workaround, I recommend not using the same filename you used to open the file with to write to disk. |
Thanks for the clarification. Will close the issue. |
I've wrote a simple routine just to change a nodata values for a series of rasters using rioxarray and noticed a strange behavior probably related to the way rioxarray caches data.
When reopening the raster with rioxarray the nodata value is not changed, but when I open with rasterio (or if I reset the kernel) I can verify the value has been update correctly on the file.
Here is a simple test:
![image](https://user-images.githubusercontent.com/19617404/154933222-aea4a700-d65d-4c50-adfa-b13630185127.png)
The text was updated successfully, but these errors were encountered: