I have created several classification maps by Python coding and saved them as envi files. I want to assess the classification map and produce confusion matrices. Since I already have an IDL code using ENVI functions for classification assessments, I tried to open the ENVI files in IDL using envi_open_file but it sends r_fid=-1 and can not open them. The files can be directly opened by ENVI and there is no problem. When I have saved the file in ENVI, (using 'save as') as a standard envi file. Then I could read the file by envi_open_file in IDL. There is not much difference in the header files. when I saved them as the standard envi file. I am wondering why the envi files created by Python can not be read in IDL. Please let me know if there is a solution. Aria
|