Satip provides the functionality necessary for
Project description
Satip
Satip is a library for satellite image processing, and provides all of the functionality necessary for retrieving, and storing EUMETSAT data
Installation
To install the satip
library please run:
pip install satip
Or if you're working in the development environment you can run the following from the directory root:
pip install -e .
Conda
Or, if you want to use conda
from the a cloned Satip repository:
conda env create -f environment.yml
conda activate satip
pip install -e .
If you plan to work on the development of Satip then also consider installing these development tools:
conda install pytest flake8 jedi mypy black pre-commit
pre-commit install
Operation
scripts/convert_native_to_zarr.py
converts EUMETSAT.nat
files to Zarr datasets, using very mild lossy JPEG-XL compression. (JPEG-XL is the "new kid on the block" of image compression algorithms). JPEG-XL makes the files about a quarter the size of the equivalentbz2
compressed files, whilst the images are visually indistinguishable. JPEG-XL cannot represent NaNs so NaNs. JPEG-XL understands float32 values in the range[0, 1]
. NaNs are encoded as the value0.025
. All "real" values are in the range[0.075, 1]
. We leave a gap between "NaNs" and "real values" because there is very slight "ringing" around areas of constant value (see this comment for more details). Usesatip.jpeg_xl_float_with_nans.JpegXlFloatWithNaNs
to decode the satellite data. This class will reconstruct the NaNs and rescale the data to the range[0, 1]
.
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
satip-2.4.0.tar.gz
(25.6 kB
view hashes)
Built Distribution
satip-2.4.0-py3-none-any.whl
(27.7 kB
view hashes)