ENVI Spectral Library import errors

Issue #266 closed
Benjamin Jakimow created an issue

ValueError: could not convert string to float: 'None' loading an ESL writen by Spectral Library Tools

  File "\\auf.uni-rostock.de\homes\profile\beyer\Anwendungsdaten\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\site-packages\qps\speclib\spectrallibraries.py", line 268, in toType
    return t(arg)
ValueError: could not convert string to float: 'None'

Comments (3)

  1. Benjamin Jakimow reporter

    fixed on both sides: * if wavelength is not defined it will not be written to the hdr * if wavelength = None it will not be read (= python None)

  2. Log in to comment