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
👋🏽 Hoping someone on the team can help us figure out how to use fsspec filecache with netcdf data when we need to modify the xarray data array object with rioxarray. Right now, it is impossible to do so as we are getting the _io.BufferedReader and the traceback led us to believe this has to do with the deep copy operation taking place https://github.com/corteva/rioxarray/blob/master/rioxarray/rioxarray.py#L1102 and
It might be worth noting that if you don't remove the cache after each run of the 2 functions you get all instances of ❌ TypeError: cannot pickle '_io.BufferedReader' object for clip_box and for write_nodata when inplace=False. So rioxarray is not able to work with fsspec's blockcache for files either.
👋🏽 Hoping someone on the team can help us figure out how to use fsspec filecache with netcdf data when we need to modify the xarray data array object with rioxarray. Right now, it is impossible to do so as we are getting the
_io.BufferedReader
and the traceback led us to believe this has to do with the deep copy operation taking place https://github.com/corteva/rioxarray/blob/master/rioxarray/rioxarray.py#L1102 andrioxarray/rioxarray/rioxarray.py
Line 335 in c15b860
Code Sample
Problem description
It is not possible to make rioxarray operations on an xarray.DataArray that is stored in fsspec's filecache
Expected Output
Modified xarray.DataArray
Environment Information
python -c "import rioxarray; rioxarray.show_versions()"
returns
returns
Installation method
pip
The text was updated successfully, but these errors were encountered: