comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Big array saving less value to a file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Big array saving less value to a file [message #92768] Thu, 25 February 2016 22:42
Sapna Mishra is currently offline  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????
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: anyone have a reader for .spc files?
Next Topic: AWK inside idl

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:24:04 PDT 2025

Total time taken to generate the page: 0.00628 seconds