The input file should be an Asterix 3-d file containing an energy or pulse height channel axis. It doesn't matter what the other two axes are, but typically they would be the X and Y axis.
The output file is a 2-d Asterix file, containing the two axes which weren't the energy axis ( typically the X and Y axes ), with data values scaled by the average value of the energy in each pixel.