manzt / zarrita.js

A JavaScript toolkit for working with chunked, compressed, n-dimensional arrays
https://zarrita.dev
MIT License
39 stars 5 forks source link

Transpose with explicit permutation #129

Open normanrz opened 8 months ago

normanrz commented 8 months ago

After some discussion, we decided that using C and F in the transpose codec can be confusing when used in the codec pipeline. Therefore, we changed the spec to only allow explicit permutations in the order attribute. Do you think zarrita.js could also support that? Thanks!

manzt commented 7 months ago

Certainly! Thanks for pinging me. Has this landed in any other implementation, yet?

normanrz commented 7 months ago

Yep, here are a few examples: https://github.com/scalableminds/zarrita/blob/async/zarrita/codecs.py#L370-L443 https://github.com/google/neuroglancer/tree/master/src/datasource/zarr/codec/transpose https://github.com/clbarnes/zarr3-rs/blob/main/src/codecs/aa/transpose.rs

manzt commented 7 months ago

Thanks for the reference. I haven't had the chance to take a look but will soon.