Numcodecs implementation of WavPack audio codec.
Project description
WavPack - numcodecs implementation
Numcodecs wrapper to the WavPack audio codec.
This implementation enables one to use WavPack as a compressor in Zarr.
Installation
Install via pip
:
pip install wavpack-numcodecs
Or from sources:
git clone https://github.com/AllenNeuralDynamics/wavpack-numcodecs.git
cd wavpack_numcodecs
pip install .
Usage
This is a simple example on how to use the WavPackCodec
with zarr
:
from wavpack_numcodecs import WavPack
data = ... # any numpy array
# instantiate WavPack compressor
wv_compressor = WavPack(level=2, bps=None)
z = zarr.array(data, compressor=wv_compressor)
data_read = z[:]
Available **kwargs
can be browsed with: WavPack?
NOTE:
In order to reload in zarr an array saved with the WavPack
, you just need to have the wavpack_numcodecs
package
installed.
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
wavpack_numcodecs-0.1.0.tar.gz
(994.8 kB
view hashes)