https://eopf-public.s3.sbg.perf.cloud.ovh.net/eoproducts/S02MSIL1C_20230629T063559_0000_A064_T3A5.zarr.zip
Created
March 6, 2025 23:53
-
-
Save mdsumner/d4abe1c1365cc956415bb8315285fd01 to your computer and use it in GitHub Desktop.
here with rioxarray, obviously not general for the multidim case but there is no xarray support for multidim (yet)
import xarray
dsn = 'ZARR:"/vsizip//vsicurl/https://eopf-public.s3.sbg.perf.cloud.ovh.net/eoproducts/S02MSIL1C_20230629T063559_0000_A064_T3A5.zarr.zip":/quality/l1c_quicklook/r10m/tci'
xarray.open_dataset(dsn, engine = "rasterio")
<xarray.Dataset> Size: 1GB
Dimensions: (band: 3, x: 10980, y: 10980)
Coordinates:
* band (band) int64 24B 1 2 3
* x (x) float64 88kB 3e+05 3e+05 3e+05 ... 4.098e+05 4.098e+05
* y (y) float64 88kB 4.6e+06 4.6e+06 4.6e+06 ... 4.49e+06 4.49e+06
spatial_ref int64 8B ...
Data variables:
band_data (band, y, x) float32 1GB ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Python I would do this, to read a decimated array the same as above
but I don't have capacity to plot that, so wrapping osgeo.gdal in R I do
(saving the georeferencing from the multidim model for another day, for now)