When a region has been constructed from a spatial mask, the task needs to have an image of the region supplied in detector coordinates to be able to correctly calculate the enclosed area. This may be achieved by the command:
backscale spectrumset=spectrum.ds detmaptype=dataset detmaparray=imagedetxy.ds