bopen / xarray-sentinel

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

CInt16 dtypes cast to complex128 #58

Closed scottyhq closed 2 years ago

scottyhq commented 3 years ago

Just wanted to note as I was trying out xarray-sentinel loading bursts (which are CInt16 dtype), they are cast to numpy.complex128. A 2X memory footprint is cumbersome for these already large full-resolution rasters. I realized this is coming from the rasterio library, so I've opened an issue here https://github.com/mapbox/rasterio/issues/2182.

alexamici commented 2 years ago

@scottyhq this looks actually fixed in rasterio. Thanks a lot!