Create detection masks for eSASS detection chain tasks defining valid image areas which are suitable for detection. The masks are based on exposure maps created by the task EXPMAP.
Parameter threshold1 defines an exposure threshold, given as fraction of the maximum exposure value:
detmask(x,y) = 0 if (expimage(x,y) > maxval(expimage)*threshold1) detmask(x,y) = 1With parameter threshold2 additionally a maximum local exposure gradient can be set:
if (sqrt((expimage(x+1,y)-expimage(x-1,y))**2 + (expimage(x,y+1)-expimage(x,y-1))**2) > expimage(x,y)*threshold2 ) detmask(x,y) = 0The detection pipeline requires only detection mask, if images from the same instrument in several energy bands are processed.
FITS image ( real32) as created by task EXPMAP. The file name is defined by parameter expimage .
FITS image ( int8) with file name defined by parameter detmask. Valid image pixels suitable for source detection are set to 1, masked out pixels are set to 0.
ermask expimage="image_soft_exp.fits" \ detmask="detmask.fits" \ threshold1=0.1 \ threshold2=100.