hypso#

hypso processes images from the HYPSO-1 and HYPSO-2 hyperspectral satellites (NTNU SmallSat Lab), from raw counts to atmospherically corrected reflectance, and reads and writes them as CF-compliant NetCDF files that open in ESA SNAP.

import hypso

l1c = (hypso.open("HYPSO2_HSI.20250304T103805.aeronetvenice.L1A.nc")
           .calibrate()
           .georeference(latitudes="latitudes_indirectgeoref.dat",
                         longitudes="longitudes_indirectgeoref.dat")
           .toa_reflectance())
l1c.write()                          # HYPSO2_HSI.20250304T103805.aeronetvenice.L1C.nc

l2a = l1c.correct_atmosphere()        # MACHI; or "ocsmart", config="ac_tools.yaml"
l2a.window(45.3139, 12.5083, size=3)  # matchup window at AAOT

Level

Contents

Made by

L1A

raw counts (dn)

ground station

L1B

top-of-atmosphere radiance (Lt) with latitude, longitude and angles

calibrate() georeference()

L1C

top-of-atmosphere reflectance (rhot)

toa_reflectance()

L2A

atmospherically corrected reflectance

correct_atmosphere()

Getting started

Reference