Import EnMAP L1B fails

Issue #431 resolved
Benjamin Jakimow created an issue

EnMAP L1B import fails with the official testdata, e.g.

ends in this exception:

QGIS version: 3.12.0-București
QGIS code revision: cd141490ec
Qt version: 5.11.2
GDAL version: 3.0.4
GEOS version: 3.8.1-CAPI-1.13.3
PROJ version: Rel. 6.3.1, February 10th, 2020
Processing algorithm
Algorithm 'Import EnMAP L1B Product' starting
Input parameters:
{ 'file' : 'D:\\Temp\\EnMAP\\L1B_Alps_1\\ENMAP01-____L1B-DT000326721_20170626T102020Z_001_V000204_20200406T154119Z-METADATA.XML', 'outswir' : 'D:/Temp/EnMAP/output.bsq', 'outvnir' : 'C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3/profiles/default/processing/outputs/EnMAP_L1B_VNIR.vrt' }

Traceback (most recent call last):
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\enmapalgorithm.py", line 53, in processAlgorithm
result = self.processAlgorithm_(parameters=parameters, context=context, feedback=feedback)
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\importenmapl1b.py", line 44, in processAlgorithm_
filenameSwir=self.parameter(parameters, self.P_OUTRASTER_SWIR, context),
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\algorithm\importenmapl1b.py", line 20, in importEnmapL1B
assert filenameSwir.lower().endswith('.vrt')
AssertionError

Traceback (most recent call last):
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\enmapalgorithm.py", line 53, in processAlgorithm
result = self.processAlgorithm_(parameters=parameters, context=context, feedback=feedback)
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\importenmapl1b.py", line 44, in processAlgorithm_
filenameSwir=self.parameter(parameters, self.P_OUTRASTER_SWIR, context),
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\algorithm\importenmapl1b.py", line 20, in importEnmapL1B
assert filenameSwir.lower().endswith('.vrt')
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\enmapalgorithm.py", line 63, in processAlgorithm
raise Exception('unexpected error')
Exception: unexpected error

Execution failed after 0.13 seconds

Loading resulting layers
Algorithm 'Import EnMAP L1B Product' finished
QGIS version: 3.12.0-București
QGIS code revision: cd141490ec
Qt version: 5.11.2
GDAL version: 3.0.4
GEOS version: 3.8.1-CAPI-1.13.3
PROJ version: Rel. 6.3.1, February 10th, 2020
Processing algorithm
Algorithm 'Import EnMAP L1B Product' starting
Input parameters:
{ 'file' : 'D:\\Temp\\EnMAP\\L1B_Alps_1\\ENMAP01-____L1B-DT000326721_20170626T102020Z_001_V000204_20200406T154119Z-METADATA.XML', 'outswir' : 'D:/Temp/EnMAP/output.vrt', 'outvnir' : 'C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3/profiles/default/processing/outputs/EnMAP_L1B_VNIR.vrt' }

Traceback (most recent call last):
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\enmapalgorithm.py", line 53, in processAlgorithm
result = self.processAlgorithm_(parameters=parameters, context=context, feedback=feedback)
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\importenmapl1b.py", line 44, in processAlgorithm_
filenameSwir=self.parameter(parameters, self.P_OUTRASTER_SWIR, context),
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\algorithm\importenmapl1b.py", line 31, in importEnmapL1B
ds = gdal.Open(filenameMetadataXml.replace('-METADATA.XML', '-SPECTRAL_IMAGE_VNIR.GEOTIFF'))
File "C:\OSGEO4~1\apps\Python37\lib\site-packages\osgeo\gdal.py", line 3173, in Open
return _gdal.Open(*args)
RuntimeError: D:\Temp\EnMAP\L1B_Alps_1\ENMAP01-____L1B-DT000326721_20170626T102020Z_001_V000204_20200406T154119Z-SPECTRAL_IMAGE_VNIR.GEOTIFF: No such file or directory

Traceback (most recent call last):
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\enmapalgorithm.py", line 53, in processAlgorithm
result = self.processAlgorithm_(parameters=parameters, context=context, feedback=feedback)
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\importenmapl1b.py", line 44, in processAlgorithm_
filenameSwir=self.parameter(parameters, self.P_OUTRASTER_SWIR, context),
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\algorithm\importenmapl1b.py", line 31, in importEnmapL1B
ds = gdal.Open(filenameMetadataXml.replace('-METADATA.XML', '-SPECTRAL_IMAGE_VNIR.GEOTIFF'))
File "C:\OSGEO4~1\apps\Python37\lib\site-packages\osgeo\gdal.py", line 3173, in Open
return _gdal.Open(*args)
RuntimeError: D:\Temp\EnMAP\L1B_Alps_1\ENMAP01-____L1B-DT000326721_20170626T102020Z_001_V000204_20200406T154119Z-SPECTRAL_IMAGE_VNIR.GEOTIFF: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/geo_beja/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\enmapboxplugin\hubdsm\processing\enmapalgorithm.py", line 63, in processAlgorithm
raise Exception('unexpected error')
Exception: unexpected error

Execution failed after 0.36 seconds

Loading resulting layers
Algorithm 'Import EnMAP L1B Product' finished

Comments (1)

  1. Log in to comment