Dose "data_type=4" in the header of an ENVI file say that its content is single-preci

المشرف العام

Administrator
طاقم الإدارة
Dose "data_type=4" in the header of an ENVI file say that its content is single-preci

I am writing a MATLAB program in which I should know the class of the data contained in an ENVI file before reading it. So I've decided to extract the type of the data from the header file.
I've used the ENVI file reader/writer code
From the function envihdrread contained in this mini toolbox, I get the following information:

According to the following photo from the page The ENVI Header Format

we understand that the data type is single. So if I extract the data with the function envidataread contained in the mini toolbox, I should get a 11137x16813 single matrix.
But in fact when I run the code

C11 = envidataread(C11File,headers.infoC11); I see that C11 is a 11137x16813 double matrix?
What's the problem?
How can I get the data type from the header file correctly before reading the data?



أكثر...
 
أعلى