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

Home » Public Forums » archive » readcol not reading all lines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
readcol not reading all lines [message #75498] Fri, 11 March 2011 05:50
Ollie Steele is currently offline  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
[Message index]
 
Read Message
Previous Topic: idl libraries
Next Topic: Re: readcol not reading all lines

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

Current Time: Wed Oct 08 15:37:01 PDT 2025

Total time taken to generate the page: 0.00425 seconds