mkhratio -- generates hardness-ratio image
mkhratio afile bfile outfile sclmode sclfact [nbins] amin bmin
This task generates a hardness ratio image from two images. Image A
is the soft band, and Image B is the hard band. The output image
is basically composed of the values (B - A)/(B + A). The result
corresponds to the range -1 to +1, which can be scaled by several
methods, such as a power of e, linearly, or binning into a linear
histogram. It is also possible to set a cut value for each image
below which the pixel will be ignored.
EXP: sclfact*e^((B-A)/(B+A))
LINEAR: sclfact*((B-A)/(B+A))
HIST: The values (B-A)/(B+A) are evenly partitioned into an
'nbins' number of bins. The resulting image contains
the bin number, which ranges from 1 to nbins.
If B+A = 0, the value in the output image is zero.
Generate a hardness ratio image with a linear scaling such that
the resulting image contains values from 20 to 40, and pixels with
less than 2 counts in each original image zeroed out in the final
image.
> mkhratio soft.img hard.img hr.img sclmode=linear sclfact=20 amin=2 bin=2
mkcolor