[general]
name=Speclib Studio
qgisMinimumVersion=3.28
qgisMaximumVersion=4.99
description=Manage field and lab spectral libraries in a GeoPackage store, read and compare pixel spectra from any image QGIS opens, and export ML-ready spectral datasets.
version=1.8.2
author=Sharad Kumar Gupta
email=sharadgupta27@gmail.com

about=Central spectral-library store (GeoPackage/SQLite) for field and lab spectroscopy, with importers for generic CSV/TSV, ENVI spectral libraries and ASD text exports, plus live search/import from ecosis.org and local-archive import of JHU/ASTER/ECOSTRESS and the USGS Spectral Library (SP07). Binds spectra to QGIS vector features (one sample <-> many spectra), lets you click pixels of any raster QGIS opens (GeoTIFF/COG, ENVI, ERDAS IMG, JPEG2000, NetCDF, GeoPackage, VRT, PNG/JPEG photos, per-band Landsat and Sentinel-2 files) to read their spectrum (wavelengths from file metadata, band names or 20+ sensor profiles; alpha and bad bands excluded; reflectance scaling decided per layer and saved in the project), average 3x3/5x5 windows, pin and compare pixels, see spectral indices, save pixels as located library samples, and compare spectra against library entries (spectral angle mapper, correlation, RMSE, SID), and provides research-grade pre-processing (sensor bandpass resampling for Sentinel-2/Landsat/EnMAP/PRISMA/EMIT, continuum removal, normalization, Savitzky-Golay smoothing, cross-library grid resampling) plus balanced CSV/Parquet export for ML training. Ships real-world-shaped soil and vegetation spectral example libraries as a quick start.

changelog=1.8.2: passes the plugins.qgis.org security and Qt6 scans - pinned installer checksums moved to a SHA256SUMS file, no silent exception handlers, reproducible ML-export sampling with numpy's generator, scoped Qt6 enums for the network error code and raster identify format. 1.8.1: release packaging for plugins.qgis.org - LICENSE shipped inside the plugin, the optional standalone-Python installer now refuses any download whose SHA-256 does not match the pinned official checksum, ecosis.org requests restricted to its HTTPS API, supportsQt6 declared. 1.8.0: renamed to Speclib Studio; it now opens in its own window instead of a dock: resize, minimise and maximise it, move it to another monitor, or keep it on top of QGIS while picking pixels; size and position are remembered and checked against the connected screens; the layout fits 1280x680 laptop screens without scrolling and scrolls instead of clipping below that; pixel details scroll in their own area so the plot keeps its space; messages appear inside the window; every dialog opens on screen; README screenshots retaken at 2x resolution. 1.7.0: help assistant redesigned around a searchable database of 244 answered questions (ranked live as you type, one answer at a time, best match first); flowcharts painted as sharp vector graphics beside the answer and re-flowed for narrow windows; answers saved as PDF with their flowchart; technical corrections to the guide (SAM/correlation/SID invariances, SRF convolution details, continuum removal and band depth, normalization, Savitzky-Golay, window averaging, index definitions and references, Sentinel-2/Landsat scaling rules, sample-type rules). 1.6.0: natural-language help assistant (F1) answering in plain language from a 34-topic guide, with theory, steps and a drawn flowchart of the process chain for every processing question; optional online answers from Claude for questions beyond the guide; context Help button in every dialog; Help menu with a pop-out resizable window; all dialogs resizable; README with screenshots; fixed stale match list after leaving the pixel view. 1.5.0: revamp - works with any image QGIS opens (one raster engine for every GDAL format: wavelengths from IMAGERY/ENVI/SENTINEL2/NetCDF metadata, band names and sensor band codes; alpha and ENVI bad bands excluded; per-band Landsat/Sentinel-2 scenes assembled; RGB photos supported; per-layer Raster settings saved in the project); reflectance scaling decided per layer (was per pixel) with product rules for ENVI, Landsat C2 L2 and Sentinel-2 L2A (offset verified against the data); new sensor profiles (Sentinel-2 10/4-band, Landsat TM/ETM+, MODIS, PlanetScope, MicaSense, DJI P4M, RGB camera); pixel window averaging with a 1-sigma envelope, pins with map markers, save pixels to a library with location; spectral indices and a sample-type suggestion calibrated on real OSSL soils; responsive dock layout, a new plot (spectral regions, visible colour strip, water-vapour bands, hover readout, derivative mode, CSV/image export), and dark-theme fixes. Tested on real OSSL soils, an EnMAP L2A Potsdam scene and a Sentinel-2 L2A Central Valley scene. 1.4.0: tested against real soil (OSSL), vegetation (EcoSIS) and Sentinel-2 data - fixed pixel picking in projects whose CRS differs from the raster's, integer-coded (DN) rasters, wavelengths from GDAL band metadata, bandpass resampling on irregular/gappy grids, similarity ranking at the sensor's own bands (metric now selectable), ML export sensor simulation, the Sentinel-2 L2A profile (12 bands), EcoSIS percent double-conversion, NaN-spreading smoothing, standard ENVI spectral libraries, descending/duplicate wavelengths, ECOSTRESS units, and several interface bugs; streamlined interface (one grouped toolbar, store header, hint line, drag-and-drop import with unit auto-detection, automatic key-field detection, band-count sensor detection). 1.3.0: visual redesign - a shared stylesheet and hand-authored icon set (widgets/theme.py) now apply consistently to the dock AND every dialog (previously only the dock was styled); icons and tooltips on every toolbar button, grouped/separated toolbar rows, a redesigned empty-state page with a "reopen last store" option, panel headers, and a search icon in the spectra filter. 1.2.5: fixed "Cannot operate on a closed database" after closing and reopening the dock - closeEvent no longer closes the store's sqlite connection (QGIS keeps the dock widget alive and reuses it), a new shutdown() method handles real teardown on plugin unload instead. 1.2.4: fixed the root cause of the 1.2.1-1.2.3 crashes - numpy/scipy/pandas/matplotlib cannot have two different installations coexist in one QGIS process, so this plugin no longer touches sys.modules at all (only ever prepends to sys.path); a conflict with another plugin's already-loaded copy now reports clearly instead of attempting a futile in-process fix, and Settings recommends restarting QGIS after install. 1.2.3: fixed a numpy AttributeError from a broken QGIS-bundled numpy install slipping past the dependency check (which now verifies with a real import, not just dist-info metadata) instead of crashing deep inside this plugin. 1.2.2: fixed a "cannot load module more than once per process" crash introduced by 1.2.1's fix - sys.modules is no longer purged for already-loaded compiled extensions (unsafe/impossible to reload), and a conflicting-environment failure now reports exactly which modules are loaded from where instead of retrying. 1.2.1: fixed a matplotlib ImportError that could happen when another plugin's own isolated-venv dependency installer (e.g. HyperCoast) is also enabled. 1.2.0: added a dependency installer (Plugins > Spectral Manager > Spectral Manager Settings): a package-status table and one-click install into an isolated environment (downloads a standalone Python and builds a venv at ~/.qgis_spectral_manager/), so QGIS's own Python is never modified. 1.1.0: added live search/import from ecosis.org, local-archive import of JHU/ASTER/ECOSTRESS and USGS Spectral Library (SP07), and a cross-library resampling tool (match one library's spectra onto another library's wavelength grid). 1.0.0: initial release.

tracker=https://github.com/sharadgupta27/speclib-studio/issues
repository=https://github.com/sharadgupta27/speclib-studio
homepage=https://github.com/sharadgupta27/speclib-studio

hasProcessingProvider=no
tags=spectral library,help assistant,field spectroscopy,hyperspectral,multispectral,imaging spectroscopy,EnMAP,Sentinel-2,Landsat,drone,spectral indices,reflectance,ASD,ENVI,soil,vegetation,machine learning,ECOSTRESS,ASTER,USGS,ecosis
category=Plugins
icon=resources/icon.svg
experimental=False
deprecated=False
server=False
supportsQt6=True
