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

Home » Public Forums » archive » Re: readcol not reading all lines
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
Re: readcol not reading all lines [message #75495] Fri, 11 March 2011 07:06
Ollie Steele is currently offline  Ollie Steele
Messages: 2
Registered: March 2011
Junior Member
Ahh, that explains the problem then: There's a space in one of my
strings. That will have to be fixed for next time! In the meantime,
I've recreated my catalogue as a .fits file to avoid such problems!

Thanks a lot for your response, it really helped me nail down the
problem!

Cheers,
Ollie
Re: readcol not reading all lines [message #75497 is a reply to message #75495] Fri, 11 March 2011 05:58 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
READCOL will skip lines that don't meet the specified format. A typical problem is reading a string which includes a space in it, which by default READCOL will interpret as a delimiter, and thus breakup into two separate fields.

I would remove the /SILENT keyword and include the /DEBUG keyword to have READCOL tell you which lines it thinks does not match the format. I might also set NUMLINES = 5000 say so you re not flooded with error messages.

If you do have spaces in your strings, you might have to use READFMT (or READ_ASCII). --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: readcol not reading all lines
Next Topic: Re: combine subsections within xlabels

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

Current Time: Wed Oct 08 11:45:44 PDT 2025

Total time taken to generate the page: 0.00617 seconds