readcol not reading all lines [message #75498] |
Fri, 11 March 2011 05:50 |
Ollie Steele
Messages: 2 Registered: March 2011
|
Junior Member |
|
|
Hi,
I have a .dat file containing ~220,000 lines of data which I want to
read into an IDL procedure. I've confirmed the number of lines
'manually' using gedit.
I'm using:
catname='BOSS/colour_matched_catalogue.dat'
readcol,catname,name,ebmv,whan,mag_g,mag_r,mag_i,cmag_i,ext_ g,ext_r,ext_i,format='(a,f,a,f,f,f,f,f,f,f)',comment='#',/
SILENT
but n_elements(name) returns only 148954.
Does anyone have any idea why the last ~71,000 lines are being
ignored? If it's a problem with readcol.pro, I can re-make the
catalogue as a .fits file, but I'd prefer to leave the catalogue as it
is if at all possible!
Thanks,
Ollie
|
|
|