HYPSO Toolbox For Satellite Image Processing
Project description
HYPSO Python Package
"hypso" is a simple, fast, processing and visualization tool for the hyperspectral images taken by the HYPSO-1 and HYPSO-2 satellites developed by the Norwegian University of Science and Technology (NTNU).
The HYPSO package can process the following data products for HYPSO-1 and HYPSO-2 hyperspectral captures:
- L1a (raw data)
- L1b (top-of-atmosphere radiance)
- L1c (top-of-atmosphere radiance with georeferencing)
- L1d (top-of-atmosphere reflectance with georeferencing)
Links
- Documentation: https://ntnu-smallsat-lab.github.io/hypso-package/ (NB: out of date)
- Source Code: https://github.com/NTNU-SmallSat-Lab/hypso-package
- Issues: https://github.com/NTNU-SmallSat-Lab/hypso-package/issues
- PyPI URL: https://pypi.org/project/hypso/
Installation
The HYPSO package can be installed using the Python package manager pip:
pip install hypso
If you encounter an error about gdal, try the following commands:
sudo apt-get install gdal-bin libgdal-dev
pip install gdal==3.8.4
pip install hypso
Calibration Libraries
Radiometric calibration files for HYPSO-1 and HYPSO-2 are distributed in two separate Python packages which can also be installed using pip:
- hypso1_calibration: https://pypi.org/project/hypso1-calibration/
- hypso2_calibration: https://pypi.org/project/hypso2-calibration/
It is highly recommended to install these packages alongside the HYPSO package using the following commands:
pip install hypso1-calibration
pip install hypso2-calibration
Development
-
Create an account at PyPI.org and request access to the hypso project (contact Cameron or Aria, updated 2025-02-17)
-
Add your PyPI.org login credentials and token to
~/.pypirc -
Install the
setuptoolsbuild system,buildpackage andtwineusing pip -
Update the version number in
pyproject.toml- Use the version number format "vX.Y.Z" for normal releases
- Use the version number format "vX.Y.Z.a1" for alpha releases
- Use the version number format "vX.Y.Z.b1" for beta releases
-
Build the package with
python3 -m build -
Upload the newly built package to PyPI:
python3 -m twine upload --repository pypi dist/* -
View the project at pypi.org/project/hypso/
-
Important Considerations:
- Importing files needs to be done using package file imports like the following line of code.
full_rad_coeff_file = files('hypso.calibration').joinpath( f'data/{"radiometric_calibration_matrix_HYPSO-1_full_v1.csv"}')- Any non-python file that wants to be included to be uploaded needs to be added in the
MANIFEST.infile - Packages names and version in both the
pyproject.tomlandmeta.yamlare case and space sensitive, be carefull with the spacing. Avoid using specific versions (==) and try to use higher than (>=) as it makes it easier for future compatibility.
Authors
- Maintainers: Cameron Penne (@CameronLP)
- Calibration: Marie Henriksen, Joe Garett, Aria Alinejad
- Georeferencing: Sivert Bakken, Dennis Langer
- Package: Alvaro Romero
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hypso-2.1.3b4.tar.gz.
File metadata
- Download URL: hypso-2.1.3b4.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6924fb34f83f263949360e8b8c213fe7e75195895221f0af2b143e1f8ada6143
|
|
| MD5 |
544e4da7df398e4a5e30ccd46a1d9ab7
|
|
| BLAKE2b-256 |
b4781c37a74d7fe09c283145fce34bc377c8546f7604c794a660f4ff1867c63c
|
File details
Details for the file hypso-2.1.3b4-py3-none-any.whl.
File metadata
- Download URL: hypso-2.1.3b4-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4878adc24d3f29f2f3abc3ebf08c3977995b815536e108ac1ed5fa7723fe4cb2
|
|
| MD5 |
907cab7fdc0465a6889bf7d47f9b798b
|
|
| BLAKE2b-256 |
fe779b4fa3a25cf7ded12aa7ea67690da567057111f475551f8a7128ffb6494e
|