We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47723d3 commit 67ab366Copy full SHA for 67ab366
xarray_sentinel/sentinel1.py
@@ -521,7 +521,13 @@ def open_rasterio_dataarray(
521
raise FileNotFoundError(str(ex))
522
raise
523
else:
524
- arr = xr.open_dataarray(fs.open(measurement), engine="rasterio", chunks=chunks)
+ # FIXME: rioxarray / rasterio do not support opening a file object any more, so
525
+ # full fsspec support via `fs.open(measurement)` is now broken and we fall back
526
+ # to hope that rasterio remote protocols works with fsspec urlpaths
527
+ maybe_rasterio_urlpath = fs.unstrip_protocol(measurement)
528
+ arr = xr.open_dataarray(
529
+ maybe_rasterio_urlpath, engine="rasterio", chunks=chunks
530
+ )
531
return arr
532
533
0 commit comments