Skip to content

Commit ec02a9f

Browse files
Try tifffile instead of rasterio in S1.transform() to solve Google Colab lock
1 parent b9e998b commit ec02a9f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

insardev_pygmtsar/insardev_pygmtsar/utils_s1.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,11 +572,10 @@ def satellite_slc(tiff_path: str) -> "xr.DataArray":
572572
>>> print(slc.dtype) # complex64
573573
"""
574574
import xarray as xr
575-
import rasterio
575+
from tifffile import imread
576576

577-
with rasterio.open(tiff_path) as src:
578-
data = src.read(1).astype('complex64')
579-
n_lines, n_samples = data.shape
577+
data = imread(tiff_path).astype('complex64')
578+
n_lines, n_samples = data.shape
580579

581580
return xr.DataArray(
582581
data,

0 commit comments

Comments
 (0)