dftscale - tpcclib 0.8.0 © 2023 by Turku PET Centre

Adjusts TACs in two files into the same level to make visual comparison
easier, or, adjust the TAC peak to specified value.
 
Usage: dftscale [Options] tacfile1 tacfile2 scaled_tacfile2
or
Usage: dftscale [Options] new_peak tacfile scaled_tacfile
 
Options:
 -x1=<start time>
     Time where AUC calculation is started (by default start of data).
 -x2=<end time>
     Time where AUC calculation is stopped (by default end of data).
 --force
     Program does not mind if the time or calibration units
     cannot be converted to match.
 -h, --help
     Display usage information on standard output and exit.
 -v, --version
     Display version and compile information on standard output and exit.
 -d[n], --debug[=n], --verbose[=n]
     Set the level (n) of debugging messages and listings.
 -q, --quiet
     Suppress displaying normal results on standard output.
 -s, --silent
     Suppress displaying anything except errors.
 
The procedure for adjusting TACs in file2 to TACs in file1 is:
1. if times x1 and x2 are not set by user, then set these based on
   the common time ranges in data1 and data2
2. calculate AUC1 between x1 and x2 in data1 (mean AUC if several TACs)
3. calculate AUC2 between x1 and x2 in data2 (mean AUC if several TACs)
4. calculate the scale factor as AUC1/AUC2
5. multiply data2 with the scale factor, and save the file.
 
The procedure for adjusting TAC peak is:
1. find the maximum TAC value (max of all TACs, if several TACs)
2. calculate the scale factor as peak/maximum
3. multiply data with the scale factor, and save the file.
 
See also: taccalc, dftsuv, dftsums, dfteven, dftavg, dftmax, tac2svg
 
Keywords: TAC, input, simulation, plotting, AUC, peak, scaling