Skip to content

Instantly share code, notes, and snippets.

@mdsumner
Created March 6, 2025 23:53
Show Gist options
  • Save mdsumner/d4abe1c1365cc956415bb8315285fd01 to your computer and use it in GitHub Desktop.
Save mdsumner/d4abe1c1365cc956415bb8315285fd01 to your computer and use it in GitHub Desktop.
https://eopf-public.s3.sbg.perf.cloud.ovh.net/eoproducts/S02MSIL1C_20230629T063559_0000_A064_T3A5.zarr.zip
@mdsumner
Copy link
Author

mdsumner commented Mar 8, 2025

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