EnMAP data importer fails in case the EnMAP data is not provided in GeoTIFF format
Issue #1421
resolved
The EnMAP spectral cubes can be provided in different image formats by the ground segment: GeoTIFF, ENVI format, JPEG2000. That´s why I check for the following file extensions in EnPT: '.TIF', '.GEOTIFF', '.BSQ', '.BIL', '.BIP', 'JPEG2000', '.JP2', '.jp2'. This should be implemented similarly into the EnMAP data importers, otherwise, they fail with an exception like this:
Traceback (most recent call last):
File "/home/gfz-fe/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/site-packages/typeguard/__init__.py", line 903, in wrapper
retval = func(*args, **kwargs)
File "/home/gfz-fe/scheffler/python/enmap-box/enmapboxprocessing/algorithm/importenmapl1balgorithm.py", line 83, in processAlgorithm
ds = gdal.Open(xmlFilename.replace('-METADATA.XML', '-SPECTRAL_IMAGE_VNIR.TIF'))
File "/home/gfz-fe/mambaforge/envs/enpt_full/lib/python3.9/site-packages/osgeo/gdal.py", line 4576, in Open
return _gdal.Open(*args)
RuntimeError: /home/gfz-fe/scheffler/temp/ENMAP01-____L1B-DT0000001511_20220708T085920Z_009_V010100_20220721T201616Z/ENMAP01-____L1B-DT0000001511_20220708T085920Z_009_V010100_20220721T201616Z-SPECTRAL_IMAGE_VNIR.TIF: No such file or directory
I would be very useful if this could be implemented as soon as possible, as this importer module is an easy-to-use reader/converter for EnMAP data that we would also like to recommend to partners during the commissioning phase.
Also having the option to save the output as a standalone raster image (let´s say in ENVI format) would be nice.
Comments (4)
-
-
- changed milestone to 3.11 (Feature)
-
assigned issue to
-
- changed status to resolved
-
- Log in to comment
@Daniel Scheffler is this you?
Yes, I can implement this ASAP.
I would need an EnMAP product in every format that we are suppose to support.
Do you have that already available? Can you share it?