davidfrantz / force

Framework for Operational Radiometric Correction for Environmental monitoring
GNU General Public License v3.0
172 stars 50 forks source link

force-cube fails when using gdal 3.8.4 because output is redirected #315

Closed Florian-Katerndahl closed 5 months ago

Florian-Katerndahl commented 6 months ago

With GDAL v. 3.8.4, the entire output printed to stderr if no file is given. As such, the check for valid resampling methods fails. Additionally, the output now spans two lines. The seemingly straight forward solution is to explicitly call the help on gdalwarp which works with both GDAL 3.0.4 and the latest release and adjust the context in the grep command.

I implemented the fix and am currently checking if this indeed fixes the issue without creating obvious errors.

Kind regards, Florian