Author Topic: questions on t2x  (Read 10523 times)

zhangustc

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
questions on t2x
« on: February 25, 2007, 01:38:51 AM »
one question on t2x:
When I finished the optimization and start to run t2x, system always gave the following information:

[lab@ h2o.structure]$ t2x > h2o.fianl1.xyz
tail: cannot open `+2' for reading: No such file or directory
tail: cannot open `+2' for reading: No such file or directory


How can I solve this problem? ???

Another question
:Is there any program can cover the atomic unit output to angstrom output?
Thanks a lot!

antti_karttunen

  • Sr. Member
  • ****
  • Posts: 227
  • Karma: +1/-0
Re: questions on t2x
« Reply #1 on: February 26, 2007, 07:58:01 AM »
Hello,

What operating system/distribution are you running? I have noticed that at least in Fedora Core 5 /usr/bin/tail cannot understand the "tail +2" notation used in t2x. If this is your case, I suggest you to replace /usr/bin/tail with a properly working binary. Another way would be to edit the t2x script by replacing the "tail +2" with "sed 1d" or something like that. The Fedora distribution has had some other problems similar to this, too. If you want to use a Redhat-like distribution, I can recommend CentOS. It is based on RHEL and has worked very well for us.


scope

  • Jr. Member
  • **
  • Posts: 18
  • Karma: +0/-0
Re: questions on t2x
« Reply #2 on: March 01, 2007, 01:28:47 PM »
My advise is to generally use OpenBabel.
You can get it here: openbabel.sourceforge.net

The Syntax is very easy and it knows practically any quantum chemistry format, even the exotic ones. The t2x script always has given me problems (in many cases: A missing blank line before the coordinate definition-which results in 1 atom missing if you use gOpenmol for example).
To convert from Turbomole to XYZ, just run
"babel -itmol coord -oxyz coord.xyz" (if your coordinate file is named "coord").

HTH
Nils

christof.haettig

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 291
  • Karma: +0/-0
    • Hattig's Group at the RUB
Re: questions on t2x
« Reply #3 on: March 07, 2007, 10:12:31 PM »
t2x definitely works (has worked for many years) correctly, provided the unix/linux commands called by it work as they should!

Sorry Nils, but the problems you write about are NOT the fault of the t2x command. Is it possible that you selected the wrong xyz format in
the gopenmol program? In previous versions of gopenmol one had to select between different xyz/xmol formats, the
t2x script writes an xyz file with two header lines (first line: number of atoms, second line: energy) as they are recognized
by many viewers (e.g. jmol, molekel). Gopenmol knows this format as 'xmol', while the 'xyz' format is in gopenmol defined 
with only one header line.

This problems does not  occur with gopenmol 3.00, which determines the file format automatically.

Best regards,
           Christof

scope

  • Jr. Member
  • **
  • Posts: 18
  • Karma: +0/-0
Re: questions on t2x
« Reply #4 on: April 23, 2007, 02:47:04 PM »
Thanks Christof for pointing this out. I rechecked and in gopenmol 3.0 it really works :-)

martijn

  • Full Member
  • ***
  • Posts: 63
  • Karma: +0/-0
Re: questions on t2x
« Reply #5 on: July 02, 2008, 10:54:54 AM »
Hi,

I had a similar problem on Ubuntu (8.04) and seemed to have succesfullly resolved it by hacking the t2x script and simply replacing all the "tail +x" with "tail -n +x". 

Cheers,

Martijn