numcodecs icon indicating copy to clipboard operation
numcodecs copied to clipboard

Filter for space-filling-curves

Open mrocklin opened this issue 9 years ago • 2 comments

ND-arrays representing spatial data may have highly related data located spatially in an n-dimensional sense. It's possible that pre-ordering the buffer with some sort of space-filling curve would improve compression.

mrocklin avatar Nov 05 '16 18:11 mrocklin

I think there is overlap with zarr-developers/zarr-python#40 where @shoyer proposed re-ordering each chunk's buffer using the Z-order curve, except here the goal is to improve compression and in zarr-developers/zarr-python#40 the goal is to reduce overhead associated with accessing small data regions.

Looks like there was some discussion of adding support for Z-ordering (Morton ordering) to numpy a while back, but looks like it didn't go anywhere. There is some code by @tgamblin.

cc @benjeffery

alimanfoo avatar Nov 07 '16 02:11 alimanfoo

I'm going to transfer this to numcodecs, because I think this is more of a request for a new filter or codec. If there's interest in adding this to the zarr v3 spec, then https://github.com/zarr-developers/zarr-specs is the place to propose/discuss.

dstansby avatar Dec 12 '24 15:12 dstansby