AMBER Archive (2009)
Subject: Re: [AMBER] amber tools reading netcdf files
From: Chris Moth (chris.moth_at_vanderbilt.edu)
Date: Tue Feb 24 2009 - 11:35:22 CST
Clearly you have compiled ptraj with the right parameters, as you note
you can output netcdf and look at headers with ncdump.
At the surface, it would appear ptraj simply cannot open the file (see
ptraj.c source code for this error).
Is there any chance you are running ptraj from a script which is
transferring to an alternate directory, or using an alternate userid?
It would be nice if errors like this were also accompanied by OS error
reporting. You might alter ptraj.c to print the Operating System
"errno" value (see man pages for strerror/perror/errno) when opening files.
Jeremy Harris wrote:
> I have a problem reading netcdf files in ptraj. Trajin does not seem to
> recognize the format, and gives me this output:
> PTRAJ: trajin ex.cdf
> Checking coordinates: ex.cdf
> trajin ex.cdf ignored; could not open file (ex.cdf)
> This seems odd because I can make netcdf files with ptraj (trajout ex.cdf
> netcdf), and ncdump will output the correct parameters for this file. Am I
> missing a library or was I during installation?
> Thanks in advance,
> Jeremy Harris
> AMBER mailing list
AMBER mailing list