arrays = Promise.all(
Object.entries(writers).map(async ([w, paths]) => {
const store = new zarr.HTTPStore(`${rootUrl}/${w}`);
const grp = await zarr.openGroup(store);
const arrs = await Promise.all(
paths.map(async p => {
const name = `${w}-${p}`;
const arr = await grp.getItem(p);
return { name, arr };
})
);
return arrs;
})
).then(arr => arr.flat())