Numpy wrapper for fpzip algorithm (P. Lindstrom & M. Isenburg, 2006) RMS Fork
Project description
Introduction
This is a fork of https://github.com/seung-lab/fpzip with changes to allow it to work with Python 3.11 and 3.12; it also has a different test and PyPI deployment system. We are grateful to William Silversmith for all of the hard work necessary to make this project in the first place.
This fork is maintained by the Ring-Moon Systems Node of NASA's Planetary Data System.
fpzip
fpzip is a compression algorithm supporting lossless and lossy encoding for up to 4 dimensional floating point data. This package contains Python C++ bindings for the fpzip algorithm (version 1.3.0). The version number for this package is independent. Python 3.8+ is supported.
import fpzip
import numpy as np
data = np.array(..., dtype=np.float32) # up to 4d float or double array
# Compress data losslessly, interpreting the underlying buffer in C (default) or F order.
compressed_bytes = fpzip.compress(data, precision=0, order='C') # returns byte string
# Back to 3d or 4d float or double array, decode as C (default) or F order.
data_again = fpzip.decompress(compressed_bytes, order='C')
Installation
pip
Binary Installation
pip install rms-fpzip
If we have a precompiled binary available the above command should just work. However, if you have to compile from source, it's unfortunately necessary to install numpy first because of a quirk in the Python installation procedure that won't easily recognize when a numpy installation completes in the same process. There are some hacks, but I haven't gotten them to work.
pip
Source Installation
Requires C++ compiler.
pip install numpy
pip install rms-fpzip
Direct Installation
Requires C++ compiler.
$ pip install numpy
$ python setup.py develop
References
Algorithm and C++ code by Peter Lindstrom and Martin Isenburg. Cython interface code by William Silversmith. Check out Dr. Lindstrom's site or the fpzip Github page.
- Peter Lindstrom and Martin Isenburg, "Fast and Efficient Compression of Floating-Point Data," IEEE Transactions on Visualization and Computer Graphics, 12(5):1245-1250, September-October 2006, doi:10.1109/TVCG.2006.143.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for rms_fpzip-1.2.11-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baeb1e72b8fd1ae4a6bb5da78f7c4f4232342b1d2dfdd152adbb62fe052ed733 |
|
MD5 | d5604e79c8eff31c429b8b10ebd34844 |
|
BLAKE2b-256 | 87be5c90ac7bc5cd394b6feea1e0b02b9f8f76a6fef3ae07f084e39d2d63ed4d |
Hashes for rms_fpzip-1.2.11-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3422c0f045e4192dbe9d22a036384c1dcd22d123b181c22e888a0022b8d84e58 |
|
MD5 | 097d722336e1bf4da412203041d98827 |
|
BLAKE2b-256 | 07ad23ffbce49377ca225368291cdcd9e73b7bd705e767fe63d3759ee25ea18c |
Hashes for rms_fpzip-1.2.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57f5d137bfd06e59a4df5fcb7609caa7bc2f27601e626c6a3ccabccb749c824e |
|
MD5 | 0f6647eea174d29c42b35e4299f4e4b1 |
|
BLAKE2b-256 | 9ab7e77d94a77749b5f3bcca01f0323491ffe3b96accc0e1c69deafbee317b08 |
Hashes for rms_fpzip-1.2.11-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e4f3031b7dfc3d31ae9d73dfd712e6ed76df77d1cca995991c22989de743936 |
|
MD5 | 5756fae7eb6d138ef79e1d79ff3a430c |
|
BLAKE2b-256 | b1af2b0fbc3ff78db3c3f8b2af80c58065a6d4e017919df140dd5bcb65951b30 |
Hashes for rms_fpzip-1.2.11-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3da9feae2c4d5914cea3d2012e4b36625d1408f21feeed29fe7327512be9c366 |
|
MD5 | 56eb5439a4cb555ffcb0f9be1bee0d1c |
|
BLAKE2b-256 | 8e0c5984911f4c67a91bb31f6487bb5c5524bd13394f484c8ae3575417007a29 |
Hashes for rms_fpzip-1.2.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a4f866b135c063e9b040d489bf87688c230a6c39d900f83f8824d82dd1fb921 |
|
MD5 | c5fcc31bbe9041128fd2df064197ce30 |
|
BLAKE2b-256 | 5fb63080f202372fa5118fe9555c277ca0506bca2fca8b8479f51a864d2ff606 |
Hashes for rms_fpzip-1.2.11-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25bbd3c28d7cc010e08558dd7b57622f8001e11ad30684d2c103e8d4cfa2efb4 |
|
MD5 | 105066f89660456e4616c5c5c26de836 |
|
BLAKE2b-256 | 95dac625fbfa085bbf194864eb992d498a285a50095a08d44fdb012093c8012c |
Hashes for rms_fpzip-1.2.11-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95b30eaabf37a72c081643d4a6b56bd4fe2514f274638ef8cefa04db313db02e |
|
MD5 | 0ea959b30fd467b5a6f2b1b7a55464dd |
|
BLAKE2b-256 | bb7397c64b36404368596755a4b589f363179af867d438036f32455bdf3373e7 |
Hashes for rms_fpzip-1.2.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3162362e2b1d344ba729ae6e24eb4e1e9f68487cfea170ea7ee7d045e6d277f5 |
|
MD5 | 8e2bed5aa13e040647cebd1b08a62236 |
|
BLAKE2b-256 | b84537e97584d029b6430681624a0f7057baf73afb8983a64d16570269a79a61 |
Hashes for rms_fpzip-1.2.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea305dd052a608e9b178900f72cf96c2a9f6aea28a5e708dc45b7473df6292a |
|
MD5 | 946c9f912ef837d87ee50db2620a39d2 |
|
BLAKE2b-256 | d09c1d2032f3f1b56f27b40409569c6a076b6e84369a6b54e03d144f6ea3119c |
Hashes for rms_fpzip-1.2.11-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2715157266062ccd1c318d3b4a3803d371a6383e29889476909f5c057f6266ba |
|
MD5 | 2ff39e575d73e0154a0bbfe3597504bd |
|
BLAKE2b-256 | 41bc179a6705201f289cc2b0c15104b5f665f47c97ce5f59c7f304c183ec09dd |
Hashes for rms_fpzip-1.2.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 137f6b3c1984d4aa0a2e110e8d996b129f18b3fcc325fde187e4cd05c93b2e33 |
|
MD5 | 9023657cda4d5663af3c62bc47a645d2 |
|
BLAKE2b-256 | 44e58b46fcf7d14f6d4065c7005e3be9ea49699a6b92272122524c0417b28bca |
Hashes for rms_fpzip-1.2.11-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108b30ba58a6d2181c9cecf1472ffb7dcbbb85438c811701396eaf3287786ad3 |
|
MD5 | c9f27484787b65850254e4b4758c6dc2 |
|
BLAKE2b-256 | 32a28334c718c22091d746f81dd1e4d6fd0e883cb3c3f76f38767459d0b2ee17 |
Hashes for rms_fpzip-1.2.11-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0609371d5c992c22882d54bcf281fa174a4b6f3a70cdf32753ca648cb80ce6e6 |
|
MD5 | 0fe490f6bd9e1eee2a84def87ae2536c |
|
BLAKE2b-256 | 4e9aaabd86a6d4ecea74de0074ec5d44f6cd62618c6cdbd74a934cf7a9418f5f |
Hashes for rms_fpzip-1.2.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd97ff52cad6683075a633a3b82c7629711c3d3cda8dbd758432b1afbd0bad1b |
|
MD5 | e46fe8df3ea0ee5c05fa119d75ed6def |
|
BLAKE2b-256 | 449cc59af3b11417ae7b646af2f77125cd07ad4c614c6158dda1da39509f7e37 |
Hashes for rms_fpzip-1.2.11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4050427f8f2cbfb86c4663b877c2276bba8f775ab8cd4951292b0de055ab322a |
|
MD5 | dcd456f7ee984675ac8c51ccb1181d2a |
|
BLAKE2b-256 | c32e6b32573e5502cbae2e7b63d83af92d92a282c47bc1566699b9d31ec612a1 |
Hashes for rms_fpzip-1.2.11-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8e9e8588231ee5961df6a32cfcd02d377b02684e461ddb61b18c2672b3d0358 |
|
MD5 | 8c6c3e293a1fc239f6543a4d4758347e |
|
BLAKE2b-256 | a6a9855c731df2ab0ec71d11d7501f33db2fbed6c5301ace37f7318909ea087c |
Hashes for rms_fpzip-1.2.11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef537d6ef05cbc86b24fd5c6e58ee35f46fec5041ebf556a879f00566dc787c1 |
|
MD5 | 512b8c1a6d738f21a6a52d31ce0b5d93 |
|
BLAKE2b-256 | 9c46a08423a5f0b91cbda1c88f229ae7dc315613a84c3d7350ff5fae3cbc02eb |
Hashes for rms_fpzip-1.2.11-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fb2182951b680ffdaeae31547631c728e6036d72b0b8159db23b83d786ff05f |
|
MD5 | cec4f4a0229eb1f0d61a5ad92f076bb2 |
|
BLAKE2b-256 | 024242127bc075f57ebcf0b9d6ce700901c68e8ad6f5b811183d4a8720bd0f66 |
Hashes for rms_fpzip-1.2.11-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c51a503c0d5f6fcb648ea7a238920a7f9ff48c80c25a2de99b067e781232e68b |
|
MD5 | 67d288c4c73f4d005bfb4aae7a5d560e |
|
BLAKE2b-256 | 40da45e2257148168c5c4c42587930c67e78e2293666d9d9b8d298b4f5a4c620 |
Hashes for rms_fpzip-1.2.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 525fdd615a3b366cac74a27829438d0ff3563e427b922e334c2092c490dece62 |
|
MD5 | ae9a0abc9bac71c8afe0b70fe7b63921 |
|
BLAKE2b-256 | 9f508cdd1ec50da0357899a5ad018a8242bee504775cf3bc23e197fc345cab9f |
Hashes for rms_fpzip-1.2.11-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 400e6fe01759d4f9ffb2614514036a846afad7e645ee924b6f2c280e8a2a3443 |
|
MD5 | 9ea1921e4c451fbb4b2328cea0a6c080 |
|
BLAKE2b-256 | 7b6bac7f02a7a20c34add9ae8eea70bd1ec4e08a2fa3df7ef8abc0bb141e12a4 |
Hashes for rms_fpzip-1.2.11-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 767412da959976d1fc0bf7f85f62725684b6e819d391ff8e3b103d8e94145da5 |
|
MD5 | 384ec0d9076ff75adcc7daf0661ad6a9 |
|
BLAKE2b-256 | 6506ac933f2e26fc6bc8f96a20f2ac1eb9d8142750a4e4c0ed734fc27f02861a |
Hashes for rms_fpzip-1.2.11-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22c78146677d569c86e42137bee73340b989612122063578cc54f08917d8e723 |
|
MD5 | c9ac529cff9d16ae2e5f0d8e28b6df59 |
|
BLAKE2b-256 | 43644391bd6e6dfd69c6c139e1cbfd0f2c42bf645cd8f9c13c699f2b4eb9545f |
Hashes for rms_fpzip-1.2.11-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 111d1387ea78d3bb22fa2a05b59e7b8961516b63106c00b5c4e1a9c318e23900 |
|
MD5 | b706a77c57a58c2eff53a45ba06fbe54 |
|
BLAKE2b-256 | 6e0059c516245a6511902cc3d3201c5a2ac15729990424a107e9775b0fc64a98 |
Hashes for rms_fpzip-1.2.11-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d4cdbdaa7426e5adf6059d00e7f99fa4c4e261549d27bd0c8c6bb8a8df8182b |
|
MD5 | 3a5eace47daec0602d84259116127278 |
|
BLAKE2b-256 | f6354c4fd05a1cab6f213aa25fe700b0fd1f4d864605654044a4ff6711840695 |
Hashes for rms_fpzip-1.2.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dee118a5ceba5d3700161f6df6234e4177aa0e8594b7cc7a7cde94caa69558f |
|
MD5 | 3084f0659af0e232e622eefb56ac1ca5 |
|
BLAKE2b-256 | 5917030e42b9009c323ac5b0d218a3af34241e59a771b1219b5898eca61dc48a |
Hashes for rms_fpzip-1.2.11-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73061154c79e8076ae3dd187625c8039fcdfa97280c724bbfb269ae8bd79d897 |
|
MD5 | 6d5762141d881f8988b94f440b0e20cb |
|
BLAKE2b-256 | bae35693d332dbb5d71efaf9850dc5c645ea6d00a279a19026cf629a756a4a75 |
Hashes for rms_fpzip-1.2.11-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37d31b14a349053083d1999a4df9c948de23247468275c22ce779bcbfa80e6b1 |
|
MD5 | 205d0d732240e484f3eb9a11d6a85c66 |
|
BLAKE2b-256 | 6173f8db58142c7ba1b4ba18f8484bfbc1a2481db809d7951188727f235107fa |
Hashes for rms_fpzip-1.2.11-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bc5b1afb996a6ea90db8aa72187975ce0aa4906c1e06859b99627715f31aaf7 |
|
MD5 | 3997e523b373974a02df80211d7270ac |
|
BLAKE2b-256 | fd24a8c5f1bf7d8345eb4bdb9c95b64e7b1c9d56b3b42a093f492ea14f8e5bf4 |