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 and twine using 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:

    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-2.1.0b9.tar.gz (869.0 kB view details)

Uploaded Source

Built Distribution

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

hypso-2.1.0b9-py3-none-any.whl (900.4 kB view details)

Uploaded Python 3

File details

Details for the file hypso-2.1.0b9.tar.gz.

File metadata

  • Download URL: hypso-2.1.0b9.tar.gz
  • Upload date:
  • Size: 869.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for hypso-2.1.0b9.tar.gz
Algorithm Hash digest
SHA256 e47f84a1ceba920dcc96f1c01a288964417749d744cd5e9205cd5f2ab415274f
MD5 269d49bd370360404e81e372e29274e3
BLAKE2b-256 46b56fce1fcf319db36eac1a77d6e823e139ec3d269ad3bd0886bd5eb4c8274d

See more details on using hashes here.

File details

Details for the file hypso-2.1.0b9-py3-none-any.whl.

File metadata

  • Download URL: hypso-2.1.0b9-py3-none-any.whl
  • Upload date:
  • Size: 900.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for hypso-2.1.0b9-py3-none-any.whl
Algorithm Hash digest
SHA256 2679478a7e2ae200c2a6cfc9b54d88864dac44ac2053bd2a81ae2ddf2c6e178a
MD5 67c52d297d921e1bbcbeb1d757f3a390
BLAKE2b-256 b263da586c35943bc2667eaa858dae4ed3a6f9624dd826d833b05cf82513d817

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