<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>As David said, the reading/writing is done in src/gmxlib/enxio.c, but you could also read edr files indirectly through gmxdump: that should also give you an idea of the type of information in those files.</div><div><div><br></div><div><br></div><div><br><div><div>On Aug 22, 2010, at 13:14 , Alan Wilter Sousa da Silva wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi there,<div><br></div><div>I am trying to use python xdrlib module to read edr files but not knowing how the data is packed using the xdr protocol makes my work very difficult, if not impossible.</div><div><br></div><div>

Would someone kindly tell me how data is packed in the edr file? Or where it is the gromacs code so I can try to figure out a way?</div><div><br></div><div>I've read&nbsp;<a href="http://tools.ietf.org/html/rfc1832.html">http://tools.ietf.org/html/rfc1832.html</a> and for reference, see topic "6. AN EXAMPLE OF AN XDR DATA DESCRIPTION".</div>

<div><br></div><div>My other option would be using a parsing code to read g_energy output but this seems very silly.</div><div><br></div><div>Many thanks in advance,</div><div><br></div><div>Alan</div><div><br>-- <br>Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate<br>

Department of Biochemistry, University of Cambridge. <br>80 Tennis Court Road, Cambridge CB2 1GA, UK.<br>&gt;&gt;<a href="http://www.bio.cam.ac.uk/~awd28">http://www.bio.cam.ac.uk/~awd28</a>&lt;&lt;<br>
</div>
-- <br>gmx-users mailing list &nbsp;&nbsp;&nbsp;<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br><a href="http://lists.gromacs.org/mailman/listinfo/gmx-users">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>Please search the archive at http://www.gromacs.org/search before posting!<br>Please don't post (un)subscribe requests to the list. Use the <br>www interface or send it to gmx-users-request@gromacs.org.<br>Can't post? Read http://www.gromacs.org/mailing_lists/users.php</blockquote></div><br></div></div></body></html>