bopen / xarray-sentinel

Xarray backend to Copernicus Sentinel-1 satellite data products
Apache License 2.0
219 stars 22 forks source link

Full support for fsspec urlpaths is broken due to rioxarray / rasterio not accepting a file-like object #127

Open alexamici opened 1 year ago

alexamici commented 1 year ago

Until some releases ago we had full fsspec thanks to the following line working:

ds = xr.open_dataset(fs.open(urlpath), engine="rasterio")

This broke with some recent release of rioxarray or xarray, I think due to the fact that the open file is assumed to be a simple python object not a fsspec one.

At the moment a workaround is in place that attempt to use rasaterio remote URLs, but it is very fragile.