End of File-Error message in simple readf routine - What's the problem? [message #55349] |
Sun, 19 August 2007 03:53 |
bmey
Messages: 2 Registered: August 2007
|
Junior Member |
|
|
Hello,
i'm sorry to post a new message, but i did not find the answer to my
question, when i searched for it (or i did not use the fitting words
for the search).
I try to read the values of a file with three columns and 2072758 rows
(the file was created from a bmp-picture by the routine read_bmp).
My code is as follows:
file='E:\Dissertation\mz_cam\spectral_calib\dat-files
\070807\run24\070807_24_0013.dat'
n_pixel= 2072758
n_channels=3
dummy_ein=fltarr(n_channels)
dummy = ''
r=fltarr(n_pixel)
g=fltarr(n_pixel)
nir=fltarr(n_pixel)
close, 1
openr,1, file
for i=0, n_pixel-1 do begin
readf, 1, dummy_ein
g(i)=dummy_ein(0)
r(i)=dummy_ein(1)
nir(i)=dummy_ein(2)
endfor
end
Could the problem be related to the array length? I mean that there
are too many values for an array? I checked the number of values
several times, so i am quite sure that the number for n_pixel is
correct.
I hope someone can help me (even if this question is possibly stupid)
or can give me a link where this question was already answered.
Yours,
Britta
|
|
|