Skip to content

Instantly share code, notes, and snippets.

@mdsumner
Created March 6, 2025 00:37
Show Gist options
  • Save mdsumner/e42af9db6c54149d7ff5c4e37f281454 to your computer and use it in GitHub Desktop.
Save mdsumner/e42af9db6c54149d7ff5c4e37f281454 to your computer and use it in GitHub Desktop.
library(reticulate)
py_require("gdal")
gdal <- import("osgeo.gdal")
gdal$UseExceptions()

f <- "/vsigs/gcp-public-data-arco-era5/ar/full_37-1h-0p25deg-chunk-1.zarr-v3"
Sys.setenv("GS_NO_SIGN_REQUEST" = "YES")
ds <- gdal$OpenEx(f, gdal$OF_MULTIDIM_RASTER)

rg <- ds$GetRootGroup()
rg$GetMDArrayNames()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment