Big array saving less value to a file [message #92768] |
Thu, 25 February 2016 22:42 |
Sapna Mishra
Messages: 66 Registered: December 2015
|
Member |
|
|
Hi all
I have a pro in idl
Pro idl
a=mrdfits('VV2J0241_CHIP1_GRIS_600B_SCIENCE_SKY_SPECTRUM_FOR S1.2007_11_12T02_59_01.981redwave.fits',0,h)
help,a
fname='981.dat'
OPENW,1,fname
b=transpose(a)
printf,1,b
help,b
close,1
return
end
A FLOAT [2096,6]
B FLOAT [6,2096]
On running this code what i have in file 981.dat is only 1919 lines in a column.
Where are the rest values (2096-1919=177) ????
Also when I am counting number of column in file 981.dat
by a pro,
file = '981.dat'
rows = File_Lines(file)
OpenR, lun, file, /Get_Lun
line = ""
ReadF, lun, line
cols = N_Elements(StrSplit(line, /RegEx, /Extract))
print,rows,cols
1919,2
why it is counting one column in extra????
|
|
|