Skip to main content

Python bindings for EUMETSAT's PublicDecompWT

Project description

pyPublicDecompWT

python versions wheel CI build

This package provides python bindings for some of EUMETSAT’s PublicDecompWT tools.

With pyPublicDecompWT compressed xRIT (HRIT/LRIT) files can now be decompressed in-memory, directly with python!
Currently, only bindings for the tool xRITDecompress are available, if you need other classes / libraries please open a pull-request.

This repository contains / mirrors the source code for the complete PublicDecompWT tool, as well. Additionally, we provide CMake build files. We tested the tool with linux and mac-os, but did not manage to build it with windows (happy to change that, please open a pull-request!)

Installation

Install pyxRITDecompress via pip:

pip install pyPublicDecompWT

The following command will verify if the installation succeeded:

python -c "import pyPublicDecompWT"

Requirements

Building from sources requires C/C++, including compiler and standard library support.

  • C/C++ Compiler, e.g. GNU-GCC
  • CMake

Usage

from pyPublicDecompWT import xRITDecompress

compressed_file = "test-data/compressed_ref/H-000-MSG4__-MSG4________-HRV______-000012___-202105260000-C_"
with open(compressed_file, mode="rb") as fh:
    buf = fh.read()

xRIT = xRITDecompress(buf)
uncompressed = xRIT.data()

xRITDecompress

To comply with the original PublicDecompWT project, the pyPublicDecompWT package provides a xRITDecompress executable as well. Our xRITDecompress script is a near drop-in replacement for the original.

There are two changes:

  • We are not writing Decompressed file ... to stdout
  • As per UNIX convention, the short option -s is separated by a space, not by a colon.

The former can be enabled by passing -v to xRITDecompress, however, the latter can't be emulated. Thus, the command line call has to be changed.

In addition to the -s option we added a positional argument files to enable batch processing of (multiple) files in a single call.

$ xRITDecompress --help
usage: xRITDecompress [-h] [--version] [-v] [-s FILE] [files ...]

Command line tool for manual decompression of HRIT/LRIT files.

positional arguments:
  files          Name of compressed HRIT/LRIT file(s)

options:
  -h, --help     show this help message and exit
  --version      show program`s version number and exit
  -v, --verbose  Verbose mode
  -s FILE        Name of compressed HRIT/LRIT file

Versioning Scheme

The versioning scheme of the python bindings is the PublicDecompWT version with the additional version of the python bindings.

Example: version 1 of the python bindings for PublicDecompWT version 2.8.1 is 2.8.1.1

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

pyPublicDecompWT-2.8.1.2.tar.gz (169.6 kB view details)

Uploaded Source

Built Distributions

pyPublicDecompWT-2.8.1.2-pp37-pypy37_pp73-win_amd64.whl (251.4 kB view details)

Uploaded PyPy Windows x86-64

pyPublicDecompWT-2.8.1.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (557.7 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyPublicDecompWT-2.8.1.2-cp310-cp310-win_amd64.whl (130.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

pyPublicDecompWT-2.8.1.2-cp310-cp310-manylinux_2_24_x86_64.whl (244.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.24+ x86-64

pyPublicDecompWT-2.8.1.2-cp39-cp39-win_amd64.whl (129.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

pyPublicDecompWT-2.8.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyPublicDecompWT-2.8.1.2-cp38-cp38-win_amd64.whl (130.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyPublicDecompWT-2.8.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyPublicDecompWT-2.8.1.2-cp37-cp37m-win_amd64.whl (130.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

pyPublicDecompWT-2.8.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

Details for the file pyPublicDecompWT-2.8.1.2.tar.gz.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2.tar.gz
  • Upload date:
  • Size: 169.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2.tar.gz
Algorithm Hash digest
SHA256 b58218228ed2c6e25d7376108d12c1340a175562d66658584275f9fea67d9f62
MD5 d5ffa9885a6748443d242ada666626d9
BLAKE2b-256 7f0134a11436d8eb51daafd41e7c63b0418da7290f454bcd70ee3e47c3097066

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-pp37-pypy37_pp73-win_amd64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-pp37-pypy37_pp73-win_amd64.whl
  • Upload date:
  • Size: 251.4 kB
  • Tags: PyPy, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-pp37-pypy37_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 fce144dec032192c0867914ba5697d13153e7fe32dc061399e8d3265d37e0f6c
MD5 811001c205029ba7d268b6679cb823ab
BLAKE2b-256 7c4aff42a7f7595fe6e9ce9f1a892a4ea4451838623451101c1b4af923ca432e

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8c7d51ddc43d90676b70e1b72d16d75b5df18832f428b2701bcacd4959afcd53
MD5 f17e16251cac774a986214b20a08db0f
BLAKE2b-256 7124fdf9be3c2753672aee2ecbdc026a679ad15c3b4d04005aea19f6b066f136

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 130.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 88dc9481e580b16e86d591613566ccb240c2cb3941b72587224c361e33baefb6
MD5 9424353c096a6acdfa1ee8cd48698aea
BLAKE2b-256 9c36db519f2ecbb797ec4fe5d78b79176c29778cce8c6c80d8dc82a2ad3a3ac8

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-cp310-cp310-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 244.9 kB
  • Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 8b02084b31d8642f1c4c907aa3aceab6227c631e8f984cbb45f509a24a2f09cf
MD5 d54d99da9dab7f9ff6e845b68c8e4300
BLAKE2b-256 c26b211cbd7e35c8ad4859278c3de376fa63f1de02f93d0962016159755d89e4

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 129.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0e40127a17457b32eaed6e478c7b4b6301b7d72fde8318bb69e220698881c45e
MD5 5d1e206c2e2d102d8cd38b722fbd89a1
BLAKE2b-256 2c7ba3a85c4a80969465116557854a81e5d6c0973362d9daa4a0ac76b4d4c6ca

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 283.1 kB
  • Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 504e413559805d9b7e6442152a508641e99d7200f6d0e787d45869985a5392a0
MD5 87b06198ada8453fb302dabaada8e57e
BLAKE2b-256 b81a1e98545439aba2298b4af32e8b836ac1ac1fa651efdde91d7f381812f213

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 130.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 23f5eacdfa65e1f2b866f4a16af25189e2b14b302b92a32281d61866d51cc4e1
MD5 4220ec9cbde27250a9b994e1cb1b0acf
BLAKE2b-256 05cf672ac9a76496ecc451198bb26e76415b7d9cfaac250140d9820246fcae20

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 282.7 kB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cea873c7859210abbca29553e3017d06eec764ed8c384e3293f333485069dbae
MD5 f815644263b8e329af289a33c65b895d
BLAKE2b-256 9d07856ac91c8ca463acc27ce15811070d67cb36c06cf70012309de1f08b8540

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 130.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 0795cde4db1d5c14be69c4890a58b846b8c94cdc13bef167c812f11778a3bccf
MD5 65efed9662cf9a5229d7bf1399ed9e5f
BLAKE2b-256 55333b2a9426463b3cfc1d44f101779c5feaee38eb105ca903094505ab3d869c

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 283.6 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2cc946311db04b45cbcf0e17d15403c0b17edebb8938d719226dc4391f08674f
MD5 f69e7a650ba8e03a22d195c9524dc58f
BLAKE2b-256 731e8774f34328fbe8cc1b8cf86afeee3d6e7c56c184a749c411d52c1cec30af

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