def open_virtual(filepath, creds): ds = open_virtual_dataset(filepath, indexes = {}, loadable_variables=['x', 'y', 'time', 'crs'], decode_times = True, reader_options={'storage_options': creds})
zarr-developers/VirtualiZarr#291
from virtualizarr import open_virtual_dataset
import fsspec
import glob
from virtualizarr.backend import FileType
files = glob.glob("./**/*.tif", recursive = True)
open_virtual_dataset(files[0], filetype = FileType.tiff)