Skip to main content

Numpy wrapper for fpzip algorithm (P. Lindstrom & M. Isenburg, 2006)

Project description

Build Status PyPI version

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.

  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fpzip-1.1.4.tar.gz (855.8 kB view details)

Uploaded Source

Built Distributions

fpzip-1.1.4-cp39-cp39-manylinux2014_x86_64.whl (957.6 kB view details)

Uploaded CPython 3.9

fpzip-1.1.4-cp39-cp39-macosx_11_0_arm64.whl (102.5 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

fpzip-1.1.4-cp39-cp39-macosx_10_9_x86_64.whl (134.3 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

fpzip-1.1.4-cp38-cp38-win_amd64.whl (116.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

fpzip-1.1.4-cp38-cp38-manylinux1_x86_64.whl (739.9 kB view details)

Uploaded CPython 3.8

fpzip-1.1.4-cp38-cp38-macosx_11_0_arm64.whl (112.3 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

fpzip-1.1.4-cp38-cp38-macosx_10_9_x86_64.whl (131.1 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

fpzip-1.1.4-cp37-cp37m-win_amd64.whl (124.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

fpzip-1.1.4-cp37-cp37m-manylinux1_x86_64.whl (730.0 kB view details)

Uploaded CPython 3.7m

fpzip-1.1.4-cp37-cp37m-macosx_10_9_x86_64.whl (127.4 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

fpzip-1.1.4-cp36-cp36m-win_amd64.whl (124.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

fpzip-1.1.4-cp36-cp36m-manylinux1_x86_64.whl (730.1 kB view details)

Uploaded CPython 3.6m

fpzip-1.1.4-cp35-cp35m-manylinux1_x86_64.whl (719.8 kB view details)

Uploaded CPython 3.5m

fpzip-1.1.4-cp35-cp35m-macosx_10_6_intel.whl (249.6 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

fpzip-1.1.4-cp27-cp27m-manylinux1_x86_64.whl (715.6 kB view details)

Uploaded CPython 2.7m

fpzip-1.1.4-cp27-cp27m-macosx_10_14_intel.whl (114.1 kB view details)

Uploaded CPython 2.7m macOS 10.14+ intel

File details

Details for the file fpzip-1.1.4.tar.gz.

File metadata

  • Download URL: fpzip-1.1.4.tar.gz
  • Upload date:
  • Size: 855.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for fpzip-1.1.4.tar.gz
Algorithm Hash digest
SHA256 524870e16d322134b6e30adad69d92947833d5a3237bbc6e0506b66087aa389f
MD5 9cdbd8196feef3b7ebbae01812673c2a
BLAKE2b-256 484edaf46c0636da08f232f143b95fa20f1549d228915b23edd9ada5147de247

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 957.6 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for fpzip-1.1.4-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 012340669648ea7ee19d45ff42a67310f49e52ac59f154b64112396c1a0507c6
MD5 7273d7f6c407042de785d7a5379c863f
BLAKE2b-256 2ca686fc59131f787835316a472165ed68e85bad70b3ec7ba3ac203bedaaee87

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 102.5 kB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for fpzip-1.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 993d9f394dc407a75329d6bbcd2ddf66c7eb3a51a2f848ab37654304a417d723
MD5 b34df6431ce56f9a20fdfea428663511
BLAKE2b-256 04827d4a36d123af66b5a55e3b15398dcc5238907d42baf7722cf5c182030da8

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 134.3 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for fpzip-1.1.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d93f7f2ac2ad8be8689a80d5f5222a188c8d7980bae2491ae75c7ad09c9fd3f9
MD5 12d4b7003401e31592d68dc007372631
BLAKE2b-256 f210ea2da00198d63448029f999dd58b8974f36abe26d95f6ede5dbe0fd8150c

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 116.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.4

File hashes

Hashes for fpzip-1.1.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b398869f3d6ab605f493b1659286a61a1882f83daa9a6342eaeca75785eb9294
MD5 1151b072a6fcd141adfaf861d2db6643
BLAKE2b-256 4458799c7e675aa951868046ca6b1f24b67c9aa6c566964ae7498b996ad647a2

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 739.9 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for fpzip-1.1.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d7ffba0b08105d19f5f0186af618f973cd91776f2f18a19d96f0dc8ca24f3c4f
MD5 5038d14cead0da1161834568bfc6b30c
BLAKE2b-256 3375f5caff2244cde0c6b082bba6d460dc8ceef4e3dc0ad657ec77ecfc3ece5a

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp38-cp38-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 112.3 kB
  • Tags: CPython 3.8, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for fpzip-1.1.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cd5c65b7085cda3e764af876a3c9c754434ccace54c9c2fc10417cb1f1bcfd5
MD5 656bbc976c5b4bce252ca29a556f6ace
BLAKE2b-256 3a61482c312e9cd503ea16143a8379df2af23f44801de99ce3923f6f2c0d5649

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 131.1 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for fpzip-1.1.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7b4d24736acd73f48d82057b0e87645e04a9feccfa823737e35452592ae8cb33
MD5 e9ebeafa7873c75850df43fdf7f1213f
BLAKE2b-256 56a015d558f004cf491b03dd7b1499e0cc50c31286bb13310051e6106c768943

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 124.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for fpzip-1.1.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 48796942f5789923409872285305c739df52f127755a56063324ac7a496dfa41
MD5 cfe78e5199ca1ac45fa83bfb74cac49e
BLAKE2b-256 04763d47ce3fb311f8ef0add746f0088ec0ce5a8efb6c6664b015a14c9f06b4a

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 730.0 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for fpzip-1.1.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2620e820ea01934fc836833932ac44df8d5ef848e2ba0b1f2ec7be3e5769cf3a
MD5 ba30b7dda27c4b1c3f00314bb4a3cc1f
BLAKE2b-256 cabe5610fd10f7c78f1110c3f51a3b0d42758f7a77ccffe4640fb8119648acea

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 127.4 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for fpzip-1.1.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ee0fb6aede4417d96af2e059c3774e595eca5b34edc018a1210f200f952fbdcd
MD5 cc66a6a6064a8bd0db731e23f13b09cf
BLAKE2b-256 7dff676071d6b4cfd676a00afcef20bfae410cec7ca20d43f9aa3a113127dfa5

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 124.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for fpzip-1.1.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 439450b295c9f981141f81bbd9e46ed14ed8039a45bd8222ba5cd0ce6279c577
MD5 73c615e77b35f6ad961c6eab15400d42
BLAKE2b-256 58f7a3ade0ba26cef927baedd66556a82fda5e604e4f5aec31a4ecdfbc5879bd

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 730.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for fpzip-1.1.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f71774ffeb2645971dd63c49b4be9f9711604fe0f9389f4d2c3761a16fd085b9
MD5 834ff31e4cedaaaf6033b8db9466f726
BLAKE2b-256 67bc974cbbb3989f250a2104213e3e788df4efc974d9ed01f6aa6f320eed8fb1

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 719.8 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for fpzip-1.1.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 90463507d118faaaeb1c1bbfbf960ce7d3916d733e6cec016f78f6e0347b6c23
MD5 39da9457133beb12c5961d41a1134e95
BLAKE2b-256 025a55638f33faaa13f51963bbbde565b3725acd7919ecf83d1233bae1878505

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 249.6 kB
  • Tags: CPython 3.5m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for fpzip-1.1.4-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 fe72288631c239003c21ff2e1bad2b11c0e55e3bd0635dab9d4c8aac91c345ef
MD5 dc1bff40569645841f77684700fe8db5
BLAKE2b-256 3f7f247c45c6fc47ae909002305afcc2d355773460882101b788fa05ee4b80c0

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 715.6 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for fpzip-1.1.4-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4daefc48489a0c1112d6042f3a60d606c28d88f6fd2827a48bd885e2c16513f7
MD5 8bdc5d369f94021c230a4a9da506a24d
BLAKE2b-256 66d99f6e31ce8ad39406c0b816ede09b2b604800f5d03216e6b55c25ebcb26cd

See more details on using hashes here.

File details

Details for the file fpzip-1.1.4-cp27-cp27m-macosx_10_14_intel.whl.

File metadata

  • Download URL: fpzip-1.1.4-cp27-cp27m-macosx_10_14_intel.whl
  • Upload date:
  • Size: 114.1 kB
  • Tags: CPython 2.7m, macOS 10.14+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10

File hashes

Hashes for fpzip-1.1.4-cp27-cp27m-macosx_10_14_intel.whl
Algorithm Hash digest
SHA256 f511bce62e9f202d9dcca175ae9aa59ce8019622a98251ad62e574630f9d1291
MD5 a5a5f90bd7c775991e7cfd02841a3901
BLAKE2b-256 bd2c94c85b432ff80a5c60adaf2bccc63aeaff7efac817afaf55c24841f6db0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page