Roger Mason wrote:
> Does anyone know if it is possible to use the same *.EXP file on dos &
> UNIX (Linux) machines?
>
> If so, what changes must be made to the file?
The file contents are exactly the same for the .EXP as well as the data
and instrument parameter files, but in DOS the records must be exactly
82 characters per line, including the CR-LF terminator. In UNIX the
files should be exactly 80 characters per line with no terminators.
To xfer files from UNIX to DOS you need to add a terminator or else when
the files get into DOS, you have one huge record that is very hard to
work with. This can be done in UNIX with the GSAS CONVDTOS program.
(DTOS = Direct-access to Sequential). One the files are in DOS, you then
format them using the CONVERT program in GSAS that adds the CR-LF
terminator.
To go from DOS format to UNIX, run CONVSTOD.
The version of CONVSTOD/CONVDTOS that is in the current release of GSAS
is full of "features." For example, it will ruin files that are
converted twice. (My fault not Bob.) A newer version can be found at
ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/cconvstod.c with compiled
versions at
ftp://ftp.ncnr.nist.gov/pub/cryst/gsas/exe_XXX/convutil.tar.gz (XXX=SGI
and linux). [Link the executable to .../gsas/exe/convstod and
.../gsas/exe/convdtos and run from the menus or from the command line as
.../gsas/exe/convstod < input > output
The sequential files produced by this version of convdtos are in the DOS
format. It does not screw up the file, if you convert a file that is
already in the correct format.
Brian
********************************************************************
Brian H. Toby, Ph.D. Leader, Crystallography Team
[EMAIL PROTECTED] NIST Center for Neutron Research, Stop 8562
voice: 301-975-4297 National Institute of Standards & Technology
FAX: 301-921-9847 Gaithersburg, MD 20899-8562
********************************************************************