Hello again,
About the error I have, if I change the band number to a 3 instead of a 4 (for Quickbird), the code starts, although I get another error:
M FLOAT = 1.00112e-005
% Unable to allocate memory: to make array.
Therefore, I guess its also a problem with band number 4.
Im new using envi, so I have no much experience. Thank you, your help is highly appreciated.