This program permits handle UX/NMR files coming from X32 or DMX.

version 8-dec-1995 corrected a bug in cache_mad.c for very assymetric dataset
   corrected also for badly configurated spectrometers, on which the field INSTRUM is empty.
   Is this case, the basic frequency default to 360Mhz (!)
version 1-june-1995, adapted to DMX


The shell script ux2cache.sh help in handling the program.
When transfering the experiment NAME=A EXPNO=1 from the spectrometer to your machine
you should :
create a directory on the target machine to hold the bruker files,
FTP in binary mode the files : acqu , acqus , acqu2 , acqu2s , ser
or use rcp -r
type ux2cache to convert (then answer the questions with directory name and
	gifa file name)

The program will create the file in GIFA standard format 

the shell script ux2cache.sh will automatize most of the work for you.

the shell script getnmr even make the transfer from the spectrometer

Be carefull when compiling this prgram that you should not use the -O
  option on HP-UX, since, due to a compiler bug, the program then
  does not work anymore.  See the makefile.

There have been several problems lately with the utility distributed with Gifa,
for the conversion of UX-NMR data to Gifa data.

These problems were several :
o The program, as distributed could not handle X32 and DMX data-sets with the 
  same version, a recompilation was needed.
o The program held a loop which tended to confuse C compilers (typically HP,
  typically with the -O option)
o a simple bug was making most of the spectral parameters completely wrong
o The DMX data-sets, when acquired with the digital filter, present a large
  shift, which shows up as a VERY distorded line-base, like many waves.
      
I slightly rewrote the ux2cach utility to handle the first three points.
The prgm now has an additional parameter which tell wether or not it is from DMX.
The ux2cach.sh shell script has been corrected in function.
(however the bug is still there with the -O option on HP)
      
This new version is available at :
ftp://tome.cbs.univ-montp1.fr/pub/util/ux2cach.tar.Z

The fourth point can be corrected with :
- a large 1st order correction (try ~ -65 turns as first guess
                                  i.e.  phase 0 (-65*360)  )
- a left shift ( lshift 130 as first guess )
    This last soltion creates large baseline distortions.



Finally,
This code uses the library cache_mad.c which is the code for accessing Gifa data-files.
This code is here for convienence, you can use it. I give this code freely, it is considered
as Public Domain, so you can use it, adapt it, modify it, etc...



I hope this helps

