Re: readcol not reading all lines [message #75495] |
Fri, 11 March 2011 07:06 |
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  |
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
|
|
|