Wrong Error Message at opening ENVI files in DimensionalityReduction
Description
Given the command:
otbcli_DimensionalityReduction -in CupriteAVIRISSubset.dat -out outpca.tif
for which I have both
CupriteAVIRISSubset.dat
CupriteAVIRISSubset.hdr
(note that the "non-hdr" file in ENVI format can have any extension (even not extension at all), as it is ignored)
I get
ERROR 1: The selected file is an ENVI header file, but to open ENVI datasets, the data file should be selected instead of the .hdr file. Please try again selecting the data file corresponding to the header file: CupriteAVIRISSubset.hdr
Nevertheless, the process goes on and completes successfully
Steps to reproduce
You can get the CupriteAVIRISSubset.dat and CupriteAVIRISSubset.hdr files from http://exelis.http.internapcdn.net/exelis/data/envi_tutorial_data/hyperspectral.zip
Configuration information
Linux Debian testing OTB-7.0.0