<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>It looks like numpy.genfromtxt can also do this, see the last example: <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.genfromtxt.html">http://docs.scipy.org/doc/numpy/reference/generated/numpy.genfromtxt.html</a></div><div><br></div><div>- Matt</div><br><div><div>On Dec 5, 2011, at 3:41 PM, Tom Aldcroft wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Asciitable of course :).   See the second example here:<br><br><a href="http://cxc.harvard.edu/contrib/asciitable/fixed_width_gallery.html#fixedwidthnoheader">http://cxc.harvard.edu/contrib/asciitable/fixed_width_gallery.html#fixedwidthnoheader</a><br><br>You'll have to calculate the column start and stop indexes.<br><br>- Tom<br><br>On Mon, Dec 5, 2011 at 3:36 PM, Wolfgang Kerzendorf<br><wkerzendorf@gmail.com> wrote:<br><blockquote type="cite">Hello,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm looking for a fixed format table reader. Fixed format like in the<br></blockquote><blockquote type="cite">fortran definition(no spaces, just a prescribed formatting).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">e.g. FORMAT(F11.4,F7.3,F6.2,F12.3,F5.2,1X,A10,F12.3,F5.2,1X,A10,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">3F6.2,A4,2I2,I3,F6.3,I3,F6.3,2I5,1X,A1,A1,1X,A1,A1,i1,A3.2I5,I6)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Does atpy do that? Is there any other package that does that or do I need to<br></blockquote><blockquote type="cite">role my own?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cheers<br></blockquote><blockquote type="cite">  W<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">AstroPy mailing list<br></blockquote><blockquote type="cite">AstroPy@scipy.org<br></blockquote><blockquote type="cite">http://mail.scipy.org/mailman/listinfo/astropy<br></blockquote><blockquote type="cite"><br></blockquote>_______________________________________________<br>AstroPy mailing list<br>AstroPy@scipy.org<br>http://mail.scipy.org/mailman/listinfo/astropy<br></div></blockquote></div><br></body></html>