Skip to main content

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

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:

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

  • Packaging projects

  • 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 setuptools build system, build package and twine using pip

  • Update the version number in pyproject.toml

    • Calendar versioning system is used
    • Use the version number format "YY.MM.X" for normal releases
    • Use the version number format "YY.MM.Xa1" for alpha releases
    • Use the version number format "YY.MM.Xb1" 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:

    1. 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"}')
    
    1. Any non-python file that wants to be included to be uploaded needs to be added in the MANIFEST.in file
    2. Packages names and version in both the pyproject.toml and meta.yaml are 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


Download files

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

Source Distribution

hypso-26.2.0b1.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hypso-26.2.0b1-py3-none-any.whl (5.6 MB view details)

Uploaded Python 3

File details

Details for the file hypso-26.2.0b1.tar.gz.

File metadata

  • Download URL: hypso-26.2.0b1.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hypso-26.2.0b1.tar.gz
Algorithm Hash digest
SHA256 a58f3ba2b38c948d818298a7007bef8343c418a2ca1e435b95f64f273f1b0008
MD5 9adfb5785e7c3e8a8de57d8cd5027aa2
BLAKE2b-256 48b4c0a10c8e6ee870545f57a3de6f4466d7bf5d237c24259fb66083d77f9512

See more details on using hashes here.

File details

Details for the file hypso-26.2.0b1-py3-none-any.whl.

File metadata

  • Download URL: hypso-26.2.0b1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hypso-26.2.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae153d370d7eb1a37c431d64ece4de9da062383f50a7f752e7c788870ecd604
MD5 0ec3bdfeba6aeee7d6d9c61a070c49a0
BLAKE2b-256 5bf6c2a2c574dab2fd8aed365738d42abae321e4b385d2ff2884082e24fa3d3e

See more details on using hashes here.

Supported by

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