Compression for scientific data