Numpy wrapper for fpzip algorithm (P. Lindstrom & M. Isenburg, 2006)
Project description
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.7+ 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 fpzip
If we have a precompiled binary available the above command should just work. However, if you have to compile from sounce, 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 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 Distribution
Built Distributions
Hashes for fpzip-1.2.4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 715a0660607d6b157a0dfb76ccc262597144e5fb298d80345e0134e3efa9d2a4 |
|
MD5 | 230a1dded71f9d1d37f94362aa3a46fc |
|
BLAKE2b-256 | 1f9a0b7fa472e724b4b180f5c181fed528ad3c81f61eee60bea7af8f034622da |
Hashes for fpzip-1.2.4-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1d2dd918823f7dad225fe936fc8bc460f1378143ce2fe7e7eec8cc93fa82772 |
|
MD5 | fa886433b24b16efa7f28de15506bec0 |
|
BLAKE2b-256 | 2cd6b71fae5242fc09707d8a5c744f26a8ec1b2727da8576411acea7592ea3fe |
Hashes for fpzip-1.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 908066d5aca2ac878fd02df4694c5f9343b3223adbacc0ff59e4d611f16c40b6 |
|
MD5 | a87fe6bab019cd07162196de02e90bec |
|
BLAKE2b-256 | bf8e15a480aed449ae2210cb6e5a47fcd0c8456d0ff8c478d6a2e8765fa8847b |
Hashes for fpzip-1.2.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af70f160c67bdbb1ebd003f63aba76fba7c60b1c532c791a1efc702a93befb5 |
|
MD5 | 70b3bae7a31381c60f1d901e6098edaf |
|
BLAKE2b-256 | b9efae495a65c34ba3f74ffbc48b2abfd3a00cc56bfda8452b3ca14138dc11f9 |
Hashes for fpzip-1.2.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a94f0c6b3910ea04d89d39b8fed0a90ee5d6ac45028b0f128194640aa8d3ada |
|
MD5 | f7b6fe1091344ea2e8d9c90ae3767695 |
|
BLAKE2b-256 | 534d2c5ecb0bbec238d0baf371785215f33b208c9946416c539df1107c135651 |
Hashes for fpzip-1.2.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e10d927f8ca991cf56c40770159bb97e35357698efa7ac0e6dd1a55e485d5e3 |
|
MD5 | 4406335b435737bd693427bf9cf32c65 |
|
BLAKE2b-256 | 9e2f4dbc55ab47d7a3c03f0c77a2720b268182c3cae038b8334ed1b7b62069e2 |
Hashes for fpzip-1.2.4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43bb11bdb69cb92b28c78b27ecaa3ca0513aee500db1c088dc927f07bd7607d0 |
|
MD5 | 6d95ffdd63fcc86a23c11a8e6052bb73 |
|
BLAKE2b-256 | 907414122c8a5d4a380fb3d4a4f464386b027342c7a2c63713786d0b9c6953a0 |
Hashes for fpzip-1.2.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 048a2ad60f66f6a3333aa35892b8073816837c3b01b1679c9d97cd5d511ddcd6 |
|
MD5 | e1bbd7afd36edd8956bef7fbec445c16 |
|
BLAKE2b-256 | c1272e37c9ce025a2185001e709195b6817e9355fedf30df0b854e99ee5c5d33 |
Hashes for fpzip-1.2.4-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e0b86ada483c42bfb2daab2b2bc6134cc23cdb7ec10c75950488f939fef3241 |
|
MD5 | 378d92720969d3bfd306dd41b2107470 |
|
BLAKE2b-256 | fab6a07adca3c008ca56e025bac4ef496ad4d26cede1626a22984efeaa2ec9b2 |
Hashes for fpzip-1.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1576260109b2558da65dc31cd300b8209f50db36438732ebbba423c64dfaa45 |
|
MD5 | 7f3d1946931d138d1e7845c930fa8752 |
|
BLAKE2b-256 | 2be85453a38d035965219dcdc6399ef6558fd485865416a40d7db389b9016e45 |
Hashes for fpzip-1.2.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b3afed818380103762898dce32668442decf1eab22793ae685d12ec49b0cce |
|
MD5 | 2332e3434bbf52e6013d3d574453f0f3 |
|
BLAKE2b-256 | 813426d05d387c0c6aabcec587a99a52d784f976190ac7d4f029568941fe2f87 |
Hashes for fpzip-1.2.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927cbe45451034cefd65151a19dc9444e2edc9a1d4eb48f53033d5a85be9c49c |
|
MD5 | df57fed67f12ad8819dd22a9762e61c0 |
|
BLAKE2b-256 | 876e4f69a4ccb16604f67b667e63c1d0d4eb41f62ecfec3e463f8cb9edae12d0 |
Hashes for fpzip-1.2.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e7864111f53f4cbe335a6c50c2c33f4e9d7426350b87bfce68d166fb155b18 |
|
MD5 | aca6f63e5c05af1dc42a3a0ed41caec6 |
|
BLAKE2b-256 | 967b1af33b9d3650caf1397e61865300372e58b781088f4bc1f28fc7bfe7c787 |
Hashes for fpzip-1.2.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09ee1d778e7a5ad81edb5c5f66f5a54fbe6ff481be0eb25e93b191b0db3c4087 |
|
MD5 | 25ab40c80888cbe089089133ddf99a56 |
|
BLAKE2b-256 | a7d93de6871fd20374eb51f27347b9149b57037b48a58f137456a591fc46d3be |
Hashes for fpzip-1.2.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d74a263494ab2415b14605439aa4033c74796e01b469674fdcda2fa8464024 |
|
MD5 | 03b1be55a4b97692c9bb382da92fc62c |
|
BLAKE2b-256 | c0aad8564b91591769c9f5ba52a6d2dbe1ff4334cb7cae85cb11fefdb35fdc90 |
Hashes for fpzip-1.2.4-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f08aa42e3d682f3b495cb6e3a865f1fa5beec0affeece26f211cae895e99bde |
|
MD5 | 61d057e7b5c1df8a3e53b2e1f55f6275 |
|
BLAKE2b-256 | 476c0e52d8d2403c861c510cac4c13fab37e973282d92f35bb1695bf4822f34d |
Hashes for fpzip-1.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79701dcdbd8adc8ee31402a9ebe139aac97db71e9b769adb1728cc92eddada56 |
|
MD5 | dd944a474de1ce1754b9370036500796 |
|
BLAKE2b-256 | de65c01f63cf01211b936df57f73c4de9767d74269c8cb936b2d21fbabbc2fc7 |
Hashes for fpzip-1.2.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 586b09ce8934495c143a037fcea78e9d3a7edcea1b62bd425b9805d5b87375fa |
|
MD5 | 5e50350d8deb2734bef1b0ee7502ae99 |
|
BLAKE2b-256 | 58c3f36f18a325f47213ca699d9dfce9c38dcb94b2a45d450e89619909c0016e |
Hashes for fpzip-1.2.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45cdc4560fd3385ae8ac5eaa6bcbce22c8a1a2f8e62e05c5e3fc89983bebe472 |
|
MD5 | 33924c7dc8667cbb11d632b1879aa4fa |
|
BLAKE2b-256 | fda1bf01a62e5ff399904a67ad569e4d0970534d75a8bf332ca1c417a45b618a |
Hashes for fpzip-1.2.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 469c86243339940ffb76e081c020b9816a742d007004ee3d7e1e70786f7c7b44 |
|
MD5 | faf6f6f325e0803a0dbca5f56ecc2275 |
|
BLAKE2b-256 | 80a9f013ff4a2fde8664cb123a10de7593d57c564f95d23c3f79ab5c14187c3d |
Hashes for fpzip-1.2.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d247c6d3a39f1b74821ed817c9c928e7253f3abab7ef8ac2bb3db7c1af0f7839 |
|
MD5 | dc3e8dcc17c94150b5ea53b6e275bd2b |
|
BLAKE2b-256 | 468b732ebe210609ee326a70da0507491b47ba75d1e3cb22caa9bc15da8faaa2 |
Hashes for fpzip-1.2.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bdb13ed4e5668b9d4eb805dd38f5e6eda8ac1735912de91dc092aa253add281 |
|
MD5 | 065a464a01dd9165ea86fe037c52c23e |
|
BLAKE2b-256 | 2952803cc71dd67f556a789ce220b95d479c8651dfc6e7ce182151a88d898a45 |
Hashes for fpzip-1.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61f745365a98f34a752fb835ff810b0f81acc515d137898facbebbdda68409e6 |
|
MD5 | 4278d3ec8a6098d61c0ede3e01d6530d |
|
BLAKE2b-256 | 4326b0793945d2b0ae21d386d0989a9874a16c125ad85aa46f81cc55f4d1a825 |
Hashes for fpzip-1.2.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca55ba71baae7aa7c04d4a9abd4b657032e5fa4f710fde2d6a995f5aad99c802 |
|
MD5 | 920fd732ba12c0340b09b34f7f95ab26 |
|
BLAKE2b-256 | e06059beb8c9b1da1d84571fdbc28d9188084eb8735ac235b892d8c041083e10 |
Hashes for fpzip-1.2.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d402238204b334e633316c028404f6599c4502eab1bd52b3fbf76f9d55d61e04 |
|
MD5 | edf4b62fc9dbbaa8b66ee826d33ff7cd |
|
BLAKE2b-256 | 91c12e3664c61b9d6cf4cb9b4fa92a00b18d251ce403bde997b7d64c23681dd6 |
Hashes for fpzip-1.2.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3840c3d21a7d96aaa7832de63480a6b7dd8f3e589900728e8e3d459490a208de |
|
MD5 | bb77e6ae41f036b94b5e067ec36dfb95 |
|
BLAKE2b-256 | 169459103bc2e56757e0b5a8947bb05d3419894a05b72113eeec9863a2722951 |
Hashes for fpzip-1.2.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25b8ee3333dd92de1b9205c0f67159a6a0c8bee4155395f8c9ac0fe12b09ce55 |
|
MD5 | 7461f924f26701ddae61e1491526ffa0 |
|
BLAKE2b-256 | 56d714c986e299efbdb510073f90620b0a260a524da5bf21b4a788d996c450a7 |
Hashes for fpzip-1.2.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59297ddae97f3f23cc5bd7250c603cf052923b21c99881051998f8aeaf6d80b |
|
MD5 | 2c8a7078902586b9a29b6f15f1939628 |
|
BLAKE2b-256 | bff70034ff90f7c23361a588350fd3b1292db8900c28e052a0134a3f09b26787 |
Hashes for fpzip-1.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a001e309b38715601c7d33f998e769575925b39d5d7be1791943cb6bccf6bc |
|
MD5 | 2b0deaece02513a408f14637e70b0642 |
|
BLAKE2b-256 | f26b3a4e996e371ac3215fa747ed891e8d34213b91b46c7e94a2638e545422c8 |
Hashes for fpzip-1.2.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6998cfd03e72d0d828055412a6b33a1384a68c0ad200b669c57a61f8be01ad3c |
|
MD5 | 317e26f27ba5b78b3574f22a60b84b91 |
|
BLAKE2b-256 | f60755a0732ebe5de09f45880e61a682ad815568186831baee2b544625311c8d |
Hashes for fpzip-1.2.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b626f82ef698f56cb0060fc925b21d945fc1d14e0cb2d7d4987a89436c959b4 |
|
MD5 | 7a72954eb6472265104e182d260e6d50 |
|
BLAKE2b-256 | a93ad723db41ab24be255cfeb68d14f4119b33fb387e643787f503e0ab638dea |
Hashes for fpzip-1.2.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fafbaf1ba3c167deecbd3545243cac985542bba6380a52241db066b7d48cc58 |
|
MD5 | de95590ef092e374045cd5f5c92db403 |
|
BLAKE2b-256 | 268d57697bd25a4e5da12f3e613d3b0199e77726a11fa632ee2d451062e68ba7 |
Hashes for fpzip-1.2.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e1b80b19de085f172f75be2ef51b8114b2936213a6c0071b38e84176d64749 |
|
MD5 | 92f166a6d847325ecb3a993702a6bc0e |
|
BLAKE2b-256 | c84e40e582aa8abc6a54d44664d12ddfd85b947b4dd3f93347a73e1e7f1a6fce |