Skip to content

Instantly share code, notes, and snippets.

View amarouane-ABDELHAK's full-sized avatar

Abdelhak Marouane amarouane-ABDELHAK

View GitHub Profile
@amarouane-ABDELHAK
amarouane-ABDELHAK / h5-to-zarr.py
Created August 1, 2020 13:59 — forked from ajelenak/h5-to-zarr.py
Python code to extract HDF5 chunk locations and add them to Zarr metadata.
# Requirements:
# HDF5 library version 1.10.5 or greater
# pip install git+https://github.com/h5py/h5py.git
# pip install git+https://github.com/HDFGroup/zarr-python.git@hdf5
import logging
from urllib.parse import urlparse, urlunparse
import numpy as np
import h5py
import zarr