Skip to content

Instantly share code, notes, and snippets.

@mdsumner
Created October 27, 2025 21:50
Show Gist options
  • Save mdsumner/fd08651adf4aa6a78348594ce10bbf1f to your computer and use it in GitHub Desktop.
Save mdsumner/fd08651adf4aa6a78348594ce10bbf1f to your computer and use it in GitHub Desktop.

this appears to be working (on setonix I just had to uv venv .venv and install virtual-tiff and it runs)

import obstore
from virtualizarr.registry import ObjectStoreRegistry
from virtual_tiff import VirtualTIFF
import xarray as xr

# Configuration
endpoint = "https://projects.pawsey.org.au/"
bucket_url = "s3://idea-gebco-tif/"
file_url = f"{bucket_url}GEBCO_2024.tif"
# Setup and open dataset
s3_store = obstore.store.from_url(bucket_url, endpoint = endpoint, region = "", skip_signature=True)
registry = ObjectStoreRegistry({bucket_url: s3_store})

parser = VirtualTIFF(ifd=0)
manifest_store = parser(url=file_url, registry=registry)
ds = xr.open_zarr(manifest_store, zarr_format=3, consolidated=False)
ds.load()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment