szcompressor / SZ3

Error-bounded Lossy Data Compressor (for floating-point/integer datasets)
https://szcompressor.org/
Other
71 stars 29 forks source link

SZ3 + Euclidean L2 norm? #59

Open mandelkow opened 3 months ago

mandelkow commented 3 months ago

Greetings and congratulations on a nice body of work.

I am interested in using lossy SZ3 compression with the hdf5plugin in Python for the compression of 3D mesh data.

Is there a way to specify the Euclidean (L2) norm along one array dimension as the error bound? So far the best I have come up with is AbsoluteError = EuclidError / sqrt(3). But this does not guarantee isotropic errors. Is there a better way?

Cheers, Hendrik

ayzk commented 2 months ago

@mandelkow Thanks for your interest in SZ3. In the previous SZ2, we use this formula AbsoluteError = sqrt(3.0/numOfElements)*normError to convert L2 bound to ABS bound. We can put the same logic in SZ3 if it suits your needs.