Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hybrid Retrieval Workflow Inversion support ENVI images only #1077

Open
jakimowb opened this issue Jan 28, 2025 · 0 comments
Open

Hybrid Retrieval Workflow Inversion support ENVI images only #1077

jakimowb opened this issue Jan 28, 2025 · 0 comments

Comments

@jakimowb
Copy link
Contributor

The enmapbox/apps/lmuvegetationapps/Processor/Processor_Inversion_GUI.py expects that basic file like the number of lines, samples and bands is defined in the ENVI metadata domain. While this might be the case for ENVI images, it is not for the often used GeoTIFFs.

 metadict = dataset.metadataDict()

nrows = int(metadict['ENVI']['lines'])
ncols = int(metadict['ENVI']['samples'])
nbands = int(metadict['ENVI']['bands'])

try:  # try and get no data value and convert it to integer
    nodata = int(metadict['ENVI']['data ignore value'])

It is recommended to rewrite this in a way that supports more file formats read by GDAL, in particular GTiffs.
Note that since GDAL 3.10, wavelength information becomes available via the GDAL IMAGERY domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant