Open abarciauskas-bgse opened 8 months ago
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.
Related #614. Possible duplicate.
ππ½ 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 https://github.com/corteva/rioxarray/blob/c15b86061feff8c2c7b0964f19922a3154a85f1a/rioxarray/rioxarray.py#L335Code 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