From: Kejun (Kevin) Dong (kevin_at_cnic.ac.cn)
Date: Mon Jun 08 2009 - 12:33:58 CDT
On Sat, 2009-06-06 at 13:39 +0800, Kejun (Kevin) Dong wrote:Hi All, I want to stream the dcd data from one server to another by frames and it is the first step to parse the dcd files in Java. Does anyone have the source code to read dcd files in Java?kevin, i don't have any java code, but i can give you some unsolicited advice. parsing .dcd files cleanly and reliably is a painful exercise. dcd is fortran unformatted binary output. as such the exact number and order of bytes in it changes due to endianness and other characteristics of the machine or the compiler (and compiler flags) that were used when compiling the original code. the VMD molfile library contains a plugin that can handle a very large variety of these different incarnations of dcd files. it is written in c, so you can consider either interfacing or translating it to your code. http://www.ks.uiuc.edu/Research/vmd/plugins/molfile/dcdplugin.html cheers, axel.I would really appreciate your help! -Kevin Dong
This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:52:54 CST