Replies: 1 comment 2 replies
-
I was able to decode this data by writing a custom |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
zarr-developers/zarr-specs#189 replaced
chunk_memory_layout
with the Transpose codec. I'm struggling to figure out how to use that in-practice and would greatly appreciate help. This is a diagram of what I'm trying to do (from here in excalidraw):I use a experimental imagecodecs wrapper to first apply a Bytes -> Bytes Deflate codec. After that, the byte string will contain 24 bytes representing the red, blue, and green values of an image pixel (each 8 bytes), repeating for each pixel in the image. I'm uncertain of how to go from this byte string to a (3, n, m) array where the first dimension represents the band using the V3 codec structure.
For context, the most common RGB storage format in TIFFs follows this encoding AFAIK and I'm trying to figure out how to represent that following the Zarr V3 spec to provide "virtual" zarr datasets in https://github.com/maxrjones/virtual-tiff/tree/RGB.
Beta Was this translation helpful? Give feedback.
All reactions