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.2.0). The version number for this package is independent. Python 2.7 and Python 3+ are 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.
- 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.1.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6e4a9bdab3604ea950a806903948a6721eed619b73479307708647da9488af |
|
MD5 | e75fcf5c8fb5f54d04e6aa7b7ed779ef |
|
BLAKE2b-256 | 88c8a11c2207bdfef2e30e94c6228dc908a5d6d10f15e15a190323c99239c92b |
Hashes for fpzip-1.1.5-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12a5ac3ebef507a0b55dcc79f4c577a84fdf17a11b9f3f483ba915dc02145345 |
|
MD5 | 9ed67c19fd18875117bc424d283fe95a |
|
BLAKE2b-256 | 3f8e9fa512f43e5c68a3f7d7bab8e9ea979bc661e8c3e658e0dfe7e4832d3677 |
Hashes for fpzip-1.1.5-cp39-cp39-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50029598f2c9b0fe24c21113009d45c1a9fb4fa9c6ba3d81999b6dc2bb78987d |
|
MD5 | d312d7962a4ea21d0c4cf340edb70ab9 |
|
BLAKE2b-256 | 82b3320ab9db19d74992de9e21abae87f99a05d2e38815f999741bc42cb58be4 |
Hashes for fpzip-1.1.5-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692d075acfdb7b9533d83dcfa8cad6fe824de654f124269d5440dddd84e6bead |
|
MD5 | 9b56f326042b96898f66cec07f012869 |
|
BLAKE2b-256 | 7a2ac82ea53ba89ddef3020213493b287469b2368d985588313d2b6b85b8f7b4 |
Hashes for fpzip-1.1.5-cp39-cp39-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0fe0838fd8bfa3a56d90299619f854002f143497d746fa475ac0087452bebad |
|
MD5 | b892d9076fa5317d381d22d8c5e6407a |
|
BLAKE2b-256 | d68b1aa3dc31041bcb74b13d12f4ba204c5e7329a502b92a757f07ada244f06d |
Hashes for fpzip-1.1.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31722415154d8100c311dc71aaaa776a133d02c04187fa00e6462c15d319ceb2 |
|
MD5 | 43517445ee521dd5cc4cc8876400bdee |
|
BLAKE2b-256 | f39627a6f6ba0b7f349a12467c9beea04cc4f4840f72d7a54139470d98c1db62 |
Hashes for fpzip-1.1.5-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf8fd209314cc809ebd3fb79fcbf3a11f877301d70289c80637e058ce2c7c26 |
|
MD5 | 92401989ac41d4791d2d32e7c823be7a |
|
BLAKE2b-256 | 2b050e7ad4cd2b2ee9fb1e757bc26ca9c4c1198dba75f8ea75b7e9cf3086e214 |
Hashes for fpzip-1.1.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b99ff9a7143651a81f74c28f849714f61fc01db020807a9bd0a3e7c36d49098 |
|
MD5 | 695b49f719bc4dfbe826e3708ce999e5 |
|
BLAKE2b-256 | 12af0f95812787c5151d7b18158f16ecd3e171ef90fc66588135e706405f9d75 |
Hashes for fpzip-1.1.5-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f818d661111cef42ba6c3c3314386f9654cbcde25cabf03e0a49e90b1a853f8c |
|
MD5 | c8e99e39c2660021ad0bc493a5820fcd |
|
BLAKE2b-256 | 9aa513959df27ffad71b87345f052fae26d3782922f63657dfb54bbb539f2c4b |
Hashes for fpzip-1.1.5-cp38-cp38-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa513b4a179c0ef6a26f0ebcbed51dc0ff5e16a7a2e73187dbb1fb351004131d |
|
MD5 | 74ed693ece96887649c07251d3c896e7 |
|
BLAKE2b-256 | 897d82f67eb6a223bd903c0d0bf15bd3c68699438331f79fc7bc0f82732e0d61 |
Hashes for fpzip-1.1.5-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8584b958d8f5ab4521408884fb71e48ef3865c18b9a8269a19bd7f7d851ee7 |
|
MD5 | 76a31c603de9ddfbe80ecdfa0087c5e5 |
|
BLAKE2b-256 | 5af9f0e01f37ce2cf9823e812e32cdc5069d15a432bb88478043bf9451547363 |
Hashes for fpzip-1.1.5-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cdcae77e741323a696328d494b365b8750f1bc498eaf33e5248e24421f2a2a9 |
|
MD5 | a04eae0ab1be49b2be8f7443ff3eee52 |
|
BLAKE2b-256 | 0b20bcce4ef35fbe67ac0450bcb6646a243fa5809d5701ad55f63900cce90fb3 |
Hashes for fpzip-1.1.5-cp38-cp38-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 427f2ad939049b1b978d497580f3388328fc0abc965d0d3d5c4e216c7ff803ba |
|
MD5 | 1b09a2e16a13490312ecb6bd3454315e |
|
BLAKE2b-256 | 6b0223ea2971fe7365eef07b6772d858faacb13efc8db34709ab5b0c7f4055ec |
Hashes for fpzip-1.1.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03ca05814b80b5d687cd24c116c7d9dd8eca475b302a3bb8e80265db682529d9 |
|
MD5 | 040d0553a861373257eb4b3cee025132 |
|
BLAKE2b-256 | e9018ed5e7cc425b5703ec9cae908af1724c0c24dc030adae7f3845c945b128b |
Hashes for fpzip-1.1.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ae94525c6f3e52b458ceb52a0a8d500e2616fce460e69ef87fca577f8335fd |
|
MD5 | 3bb3405c2704a4d543ea3d46983a031d |
|
BLAKE2b-256 | 75cc423beafc11ee41e07bf0feeb572c50acf944a56abd1f4c22e9ece6a24682 |
Hashes for fpzip-1.1.5-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f6e9efd36f4c97bfb1f1b1d271f45ee906376de2a48a52156458df228693dc3 |
|
MD5 | f194901a88359618b3b0ecf9d55cfdcb |
|
BLAKE2b-256 | f8f7b859012850238bbcaf73fe5d23650fab925ecc4772b6b5d13e44fbc12a92 |
Hashes for fpzip-1.1.5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92d497d8929583d5985070eaaee02635daac18028d308872182fa99e66419e1f |
|
MD5 | 100a522752b1816c7920d25d22d3141c |
|
BLAKE2b-256 | c40b38e8e74bb7e257fb539a9903a7011fc8ceec62599cc4ad7b6e49612b7111 |
Hashes for fpzip-1.1.5-cp37-cp37m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce7a35726d18406917170e937c5f987d39b14198397e542daabf2dc3af95d2f2 |
|
MD5 | 4841a31eac137cfdc5ae10b0a2313b04 |
|
BLAKE2b-256 | 4f666abbc0016e10e0ae3122ba5fd2b2bf1d7f717469256dbf6f1daed728dd2d |
Hashes for fpzip-1.1.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af682ae965f030d756656794ad7da5c5231905ea359045e9a83c8e1be32b7d2e |
|
MD5 | c6813778786a21caeebde427933bbef7 |
|
BLAKE2b-256 | 425ce3ca145e375df80c58f2815a4388a94e310c41508278e9dd48a59ee117f5 |
Hashes for fpzip-1.1.5-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b7dfd98faffbd13e75fb977125f90ea8acf011a3da7d7767d2aec4a125afd91 |
|
MD5 | 16f798577d139e8f512483aa2fb9a107 |
|
BLAKE2b-256 | 8e95166c8d9567e2a4421d2efdc64216f9db1846d38c3be07acd43ee69d59845 |
Hashes for fpzip-1.1.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66021f5beef5f42d15a3fd068a0b95a6dbb334ebbdbfcc0160504fc933ceedd |
|
MD5 | 37f9e5c85bf0464432f60602c3feb5b5 |
|
BLAKE2b-256 | 4b6b5ca0fe7e4dd800f992f2d43625e4c6b1100eaf9fccc4a97413669f31ad85 |
Hashes for fpzip-1.1.5-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c03176316aecda2279887219f11b487cc37da721f98ef4cca01cfb552eb2a6d |
|
MD5 | bb0b89d3911ba263a7398357bc119f0e |
|
BLAKE2b-256 | d547a343375558a7b625f14dc648c51ed34615d91265c3c40d9185b58df7bdd9 |
Hashes for fpzip-1.1.5-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb5b93510970ddbe067a719ef1900bad4a566c87babc98992e86c8c23e954c7f |
|
MD5 | c6a37c15fa6a33aa2d48d97983141c1b |
|
BLAKE2b-256 | 346c7e4b9fa8c54c99034369d5bfd3d88c5dfcea1913d907980681a988a1e508 |
Hashes for fpzip-1.1.5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 465a3e7f7220e5f40ade08b174d3dcc8bc038886e9abfb2948b12a7b20af67e7 |
|
MD5 | 66e58eee397be537c2b247072abd8ab6 |
|
BLAKE2b-256 | 3c8a64503104ac6dd0d7bdfaa7391c613eac47a11b8dd10b52c7a092f740e518 |
Hashes for fpzip-1.1.5-cp36-cp36m-manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7822091c0ab963eaf664672947d08ee30ed15c838e8bf61430fca19300dd5a27 |
|
MD5 | 658b8fae0fc604dc2587fe29ea781497 |
|
BLAKE2b-256 | 2f556cd1b6f8f4aa86ea3621348cb811376dda0166042c1265b8b668beaa478f |
Hashes for fpzip-1.1.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccfcab49fb908e5811ad4eacc65855107b2e2d473dd7c7aa3f46f5b8b9cfce5b |
|
MD5 | e07951a70acc8139d3f2e698bcfc0bf1 |
|
BLAKE2b-256 | d364c6936ead9782c30f7495b966bb612304d180f3c413fe406cbfb965c7f41d |
Hashes for fpzip-1.1.5-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4c7164c07681924cfb64431ef7da5332a00cfcdfe8f40466e29b4282395f197 |
|
MD5 | 1b415b6b67466a5af79048bc2d2e0dd6 |
|
BLAKE2b-256 | 13e90fb0f1502d4c40080bb5288a3199ecde3a0b25d86f0a6738a50b95ef04f4 |
Hashes for fpzip-1.1.5-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06979d58818531f6889a531b2156dfd514101053ffc65fab0295c577da38b89f |
|
MD5 | d188c09f792c813e00aad19cf213d5b2 |
|
BLAKE2b-256 | 29b85ba2707b1f497df76c6a285758de89c04e4e34d4397d5bc9f98dcc673cf2 |