Skip to content
TabassumNova edited this page Feb 9, 2026 · 4 revisions

PeakViz Tutorial

Installation:

pip install peakviz

Workflow for visualizing HSI data:

Screenshot 2025-12-18 at 10 33 28
  1. First, select the sensor. If you want to view “PSR” data, select “VNIR/SWIR”. If you want to view “FTIR” data, select “MWIR/LWIR”.
  2. Load Reflectance files. For PSR, you can select multiple “.sed” files. For FTIR, you can select multiple “.txt” files.
  3. Load Absorbance files (only for FTIR data). You can select multiple “.txt” files.
  4. Load Fingerprints. Create an excel file (.xlsx). The format should be as follows:
image
  1. Put all the reference spectrums in one folder. Then select multiple of them to compare them with real stream sample spectrums.
  2. Click “Output location”- to select path to save html
  3. Click “Open Data”. This will open the data in your browser and save the data in the selected output location

Workflow for “Averaging”:

Screenshot 2026-02-09 at 14 59 25
  1. First, select the sensor. If you want to view “PSR” data, select “VNIR/SWIR”. If you want to view “FTIR” data, select “MWIR/LWIR”.
  2. Load Reflectance/ Absorbance files. For PSR, you can select multiple “.sed” files. For FTIR, you can select multiple “.txt” files.
  3. Select “Average” option in order to average all the selected files. This action will create an averaged text file in the same folder location. If you have 2 reflectance files (Sample1_M1, Sample1_M2), the new averaged file will be 'Sample1_MReflectance.txt'.
  4. (Optional) Click “Output location”- to select path to save html
  5. (Optional) Click “Open Data”. This will open the data in your browser.