pizzarr icon indicating copy to clipboard operation
pizzarr copied to clipboard

Zip store

Open dblodgett-usgs opened this issue 1 year ago • 1 comments

User story As a developer or user of relatively small zarr stores, I'd rather work with zip stores than directory stores.

Preferred solution pizzarr can work with zip stores as written by https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.storage.ZipStore

Possible alternatives ??

dblodgett-usgs avatar May 10 '24 16:05 dblodgett-usgs

The Zarrita.js ZipStore implementation could be helpful to reference https://github.com/manzt/zarrita.js/blob/main/packages/storage/src/zip.ts - R's built-in unzip(list = TRUE) might provide equivalent functionality to what the unzipit JS package is doing there https://stat.ethz.ch/R-manual/R-patched/library/utils/html/unzip.html

keller-mark avatar May 23 '24 15:05 keller-mark

FYI, here's how I'm reading from ZipStores in the interim:

open_ZipStore = function(path){
	zarr_dir = tempfile()
	unzip( zipfile = path, exdir = zarr_dir )
	pizzarr::zarr_open(zarr_dir,mode='r')
}

mike-lawrence avatar May 31 '25 00:05 mike-lawrence