skip_lun question [message #65939] |
Tue, 31 March 2009 13:54 |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hi people,
I've a question with the skip_lun function.
Looks the following example:
I've a .dat file that contains a BYTARR(180,240,24) and I want to read
a 180x240 matrix on the 7th position ([*,*,7])
I tried something like that:
openr, un$lun, file, /get_lun
skip_lun, un$lun, (180.*240.*7)
data=bytarr(180,240)
readu, un$lun, data
------------------------------------------------------------ ----
Now I verify the reading......
point_lun, un$lun, 0
all_data=bytarr(180,240,24)
readu, un$lun, all_data
print, total(abs(all_data[*,*,7]-data))
IDL> 6.71223e+06
The result is so different and I don't know why.
Any suggestions? Does anybody knows how is the information saved in a
DAT file.
Thanks,
B.
|
|
|