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 Distributions
Built Distributions
Hashes for fpzip-1.2.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4e35e68831dcd3ec70ac50e928deaee221b008292f8b8aa7c6b030dbf0583b0 |
|
MD5 | 7b8ad771812868ed79d8cbb6acb3ae92 |
|
BLAKE2b-256 | 79a6c6435da7072ebceac5cd0af6664695142b80e541786fd1c62006d06917e3 |
Hashes for fpzip-1.2.2-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7964cbe061851ccda691bc1db4d0645e7ad09de5f5e2f6a31f91516dbf2bca6 |
|
MD5 | ae6990571ff0dda2987f570d31d27adb |
|
BLAKE2b-256 | 7bf86de87a4eb8f9fb80c0e6f7c9e68c6927e293b071969fb5188d522b396137 |
Hashes for fpzip-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae70c30b715001a965c9fcb8bc1a0f91bb6e525d95e83d3803fe5333017913ff |
|
MD5 | 611c3b34a2803c4f18dae3707b7fff42 |
|
BLAKE2b-256 | 7ebb1fbb88116a1356c06c53403cd6eb9ef9b710edb4b7904a67765b723e57da |
Hashes for fpzip-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3307c203880ed8cabb0a6a95092d8db8de0fbb2967fb212c2cefd7940c02b17 |
|
MD5 | 57199c67069822529aafa9a1fcbcbba0 |
|
BLAKE2b-256 | 6ea543310f7274a5c434ca1944b5d338437c8b45b04a0c1ebff140d30d6e3b6e |
Hashes for fpzip-1.2.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca7687f8c897e388b1c66764c2af6fff07aa7f5af740696b0c2978d235c043e9 |
|
MD5 | 51dfc487c766f7082a33b2842dcee346 |
|
BLAKE2b-256 | bb013a4f8359cd62a5f03c95012fe86433fe96331c3197e975ebfb04394c6b8f |
Hashes for fpzip-1.2.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f56df2294b0cb98df7eb863296fbbcbfdc5f7ae156a2926f3a5d4a67ff7e802 |
|
MD5 | f00b90bf76b5478381fda88d7715027a |
|
BLAKE2b-256 | 85d8b61ccced73cca448b19ac1374bd19fbece7d1a031e1b8d6afb2de07da510 |
Hashes for fpzip-1.2.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 416d93792ba5f88b95a16dc23bf0a4d8c8ab4522263b4f2cc4515b6b447edb4d |
|
MD5 | 2d3ac6acb055169977c7a3875b76c4ab |
|
BLAKE2b-256 | 87e1f3cf30d4076ee2c9d41895240f27075f1f32e0ed6b511428c5311ec76a44 |
Hashes for fpzip-1.2.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f92c09a807a73820f90657ee1eeb79cd81b704ab0723f13f21b742159a338bca |
|
MD5 | 8bb63e54f5a0c4bfa5a697a33953718e |
|
BLAKE2b-256 | e68e96031d1c38789c5f9c651de378288f87c3aa8991320f9bb5d6b0b7a65956 |
Hashes for fpzip-1.2.2-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5a133a6b070442d88e7eb7a7c070e8eb7207af18a98b7605f4a26da3ba8bdf5 |
|
MD5 | 14cebe3dd3f744bd163f3b19f2d94edf |
|
BLAKE2b-256 | ae9e8d00b2841fa098b90fd923d73c36d803d02e861a4877799a394e7a0c2dcf |
Hashes for fpzip-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95706e2b52d208c0e11d031d048427a520464d8b8048ee96934913657b7c04c |
|
MD5 | 8a3b5badfeb6dc073f6124c0796a2395 |
|
BLAKE2b-256 | a1de4a694eed578e5b20f05669346af10c5e7438e31546f84729e8b9d036a662 |
Hashes for fpzip-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8661e08d0473420498b78ead6af0d0bc237a3307659b64bce7bb34ec11439f3 |
|
MD5 | d82eea8500525638e69b3bea2cfae1ef |
|
BLAKE2b-256 | ce8491c98ec507c2db9500a73747890b93f4e5f537c3adf618f177027bdf5478 |
Hashes for fpzip-1.2.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa19d5e67fa804b4588866679fafbb4b7f8a9c190bdfbb6be4e1c42ac1e822f |
|
MD5 | e64f80292a41133a79c4762cdca8664e |
|
BLAKE2b-256 | 69fbcbc440941a3f34b7da023ced33580e907a679ab54b78175c81dfe24bedb4 |
Hashes for fpzip-1.2.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a55f8e6486df6d198ddfa6e375b3635ff01c630dab062f46d373cf3d53cde24 |
|
MD5 | 9431cdbac7cfca6556813cb57d19baea |
|
BLAKE2b-256 | 4a22cd1691dea917392b4ebb979845adc6f48fc7bd74cb548c22165275873966 |
Hashes for fpzip-1.2.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b354c2f1370115b338cbb189513dd940a664fbe46af2855193cbd1fcd19c0c |
|
MD5 | e3f39c2659062eab4eaba3adda9b9003 |
|
BLAKE2b-256 | 8352b31082f38e197c0c70057868c2a836d4d285c08d6a71f98f949e2d5b7f80 |
Hashes for fpzip-1.2.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef06542f4d2ac68b60894cf09f33a3b3546712f1ebbb744074089b4f57a2d8cc |
|
MD5 | ab6bff9c75cde65db3f348230850785a |
|
BLAKE2b-256 | b4991ad81d6948bf7a673c381014933b730aa683ac6a5fa3e46f50283075e255 |
Hashes for fpzip-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac0a69fb30904fcbf55c9a3faeb5e5d0369748510b9d27b0d0e0b3bf3526700 |
|
MD5 | b36f0a02a44a38726c2697516ef535d7 |
|
BLAKE2b-256 | 87ff8217d2412c8a67018d5c26a7148026701771a9b27e5e0463931df5047b99 |
Hashes for fpzip-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3683f64b37f50769a7b9e4172bdd15b9b46364a1b4d6f531b18da6dd79fed62b |
|
MD5 | 3e22a8dfc7880c07f899a4eb767c68dd |
|
BLAKE2b-256 | 3ada27b7758be81b89711df3b5f679a18add769c0a69e30936eb83a8575349e8 |
Hashes for fpzip-1.2.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621c44049555f6fae645a1a5b9c5a89684393993da3dc8ea27b67569eb9d62d1 |
|
MD5 | 64f8cd55c50f817c92dfe7d4bf111722 |
|
BLAKE2b-256 | 171010375e38fad3a5c23fb8d00bceeaef813e1461d9a3f4033cc8ce03090933 |
Hashes for fpzip-1.2.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9b5d7b29dbc118c50407b25d2568f06c2ead660be3fd1bf799a62755938505 |
|
MD5 | 29b70e08865d20998148b6b93a5122dd |
|
BLAKE2b-256 | 893f2cb6e343ec09ee004909324136914bd05cf01fde31641c8d771690748630 |
Hashes for fpzip-1.2.2-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 497686adf20834a16acdf6404df073edd8b08cff3c916e73208b957e10073724 |
|
MD5 | ac86fc920b3c630e786b5485ff0031f6 |
|
BLAKE2b-256 | 588e25e622073b5d56f53e025eecf99c9a033288076b14cf5814ae4d528745cc |
Hashes for fpzip-1.2.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 788878da6b236f0edd27648c97f052e5ed9e3be130a5069cd1704fc699328bef |
|
MD5 | 2918d4e15575184805f66d19d5fd4275 |
|
BLAKE2b-256 | aed15e937270d518627234466f697f16e1170a0c564ea6b535cbf602b94cc715 |
Hashes for fpzip-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 642e2019d04abbd114475787b0d0ad25ca3d792f00099e03edd0cbdd7c8be1b3 |
|
MD5 | f17e0c486e18f2acad0a4df99ebd863b |
|
BLAKE2b-256 | 4980974ef830fc216e10f6d34cbb6df672cd694474c977243c9535abf9115f31 |
Hashes for fpzip-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf72a9269a0a5f87bbf3ecf54cb337192a715eef8e58025975ee8ee07413475 |
|
MD5 | 854e5a5abc5996b5d345b0b502c3ea5f |
|
BLAKE2b-256 | dd56cd368149ada7393d92e5f33437184ad365cf3aef0b947b715aa37c38c3bf |
Hashes for fpzip-1.2.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8407b1240562c18e3346cd8fe8ac75899e39b06641eaf68fbf0ed4210c8279ff |
|
MD5 | af4ac47ba1edb50e90f797475479e9c6 |
|
BLAKE2b-256 | 8d89a29813149fd060a9433b0eba57c2efc6e0c4bf897b58ecb3f7c26a86f5c9 |
Hashes for fpzip-1.2.2-cp38-cp38-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4ea5088b52f8cde8298bcd2c51e84dd1b646efa23e9ec797ac77dd6ebe3aec4 |
|
MD5 | 0029c1538a4fc28877ed3594e190ae7b |
|
BLAKE2b-256 | 7027d061c5f2c567fd94cc30cfed6c013215e24edda767362f02870fb86ee89a |
Hashes for fpzip-1.2.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b19fe39a097aaef921a8eb1471f838d426829ac131ce7b801188d93c1aabc9 |
|
MD5 | 5234f141f136efc786f29ca1368acd91 |
|
BLAKE2b-256 | c4a80280741423fd45771ea7cf06330b3880a1502a57ebd16a6b00f8871b433c |
Hashes for fpzip-1.2.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b05a00244be25c678a3b23fa3adbcc6bf8fa18aa46be8ca466b43b829e12da87 |
|
MD5 | c122ad6cc7b58d301995f596f28f6734 |
|
BLAKE2b-256 | 7a8070aea04b946f545967fbcf186dfa07a7f2a2216fc3fd3397a20a163c3e90 |
Hashes for fpzip-1.2.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ad0001e4fbc6aa1ea9df99185f1deadbff87684aee2a9a6c80e24cb6cda029 |
|
MD5 | f80ea0abcfe3c3298a109a7f79abc225 |
|
BLAKE2b-256 | d841fe2040c4da3a7e73e87b07d1fb5cc7ce5d1794275f157711eccc63d6160d |
Hashes for fpzip-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30d5078a2312056bf422fe5d95b8f48fb24108c96d768bcf94fd75cca0ccc57e |
|
MD5 | da1ed8abd55a66ae2031bdb8578e19b0 |
|
BLAKE2b-256 | 27d39cb17b5c315d0d633b5ae92fea91f926f7adc57979755450fef1e0072220 |
Hashes for fpzip-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69db9d33eef2b72eb19a8a88550f1cea758b3b34818454677aea75ba0672b446 |
|
MD5 | eeaa8aea1c0c96055e559635ca749e28 |
|
BLAKE2b-256 | 01d1dd1a406903c93f59a87877ec889d4e928ebad166c73c67f64dce9bc48a6c |
Hashes for fpzip-1.2.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c616c670d01814b8b1f44914d826bd10215437dfbe1e39c02c2238d7231ae4e |
|
MD5 | 069d4bf0c81bc37b2764ad713c6eb8c6 |
|
BLAKE2b-256 | 4ac294d29a59c0db09b7d8c222d198e8dc35f69e03537496127901e774e96134 |
Hashes for fpzip-1.2.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d72d56c3ca0fe47a892bf6d4ee5d4d2aac9eef131dd59dd785f3910abf493f9 |
|
MD5 | 34ac549855e0b19b825e978a7a4eeeeb |
|
BLAKE2b-256 | 97d0c4f4484de0f9c09732c68da9eff087ba9ce7df51a61b9a104cf333ee839f |