saalfeldlab / n5-universe

Functionality shared across all n5
BSD 2-Clause "Simplified" License
1 stars 2 forks source link

Zarr order and axis order interaction #18

Open bogovicj opened 2 months ago

bogovicj commented 2 months ago

When a zarr array is in C-order, N5 internally reverses the shape of the array. This means ome-zarr axes also need to be reversed. This is the current behavior, and is correct.

However, when a zarr array is in F-order, N5 does not reverse the array shape. The ome-axes should not be reversed, but they are currently also reversed. This is a bug.

bogovicj commented 2 months ago

see https://github.com/saalfeldlab/n5-universe/commit/a3cd67fc391a4f1c6ac01de159642b2131f775e3

bogovicj commented 2 months ago

experimenting with a different approach here: