The function returns a status, if zero, the user cancelled, so ignore anything else returned. The 3 return aars will be set to zero. This is simply a list of the unique detectors that were found in the incoming aar's data.det tags. They are either modified by subtracting the fringe from them, or multiplying by a factor. Converted to use IDL version of original fortran defringing code.
New routine is dfringe .pro.
The data are passed to this routine via the arguments, rather than via the file ffsubin.dat. Removed use of ffitin.dat file containing initial parameters. Parameters used for input to dfringe routine are written to display. Period is updated with period found by dfringe routine. SJU Fixed a bug in the fringe structure - where tunits were not recognised due to order of data tags.