ermask

erosita/ermask-1.2

Summary:

Create detection mask for eSASS detection chain tasks.

Description:

The task ERMASK evaluates an exposure map and calculates a detection mask according to conditions specfied by parameters threshold1 and threshold2 . The detection mask is an image with 8 bit logical values, valid pixels are set to .true. . Parameter threshold1 defines the minimum exposure threshold, given as fraction of the maximum exposure value:
  if (exp(x,y) > maxval(exp)*threshold1) detmask(x,y) = .true.
With parameter threshold2 a maximum local exposure gradient can be set:
  if (sqrt((exp(x+1,y)-exp(x-1,y))**2 + (exp(x,y+1)-exp(x,y-1))**2) < exp(x,y)) detmask(x,y) = .true.

Parameters:

Input files:

Output files:

Examples:

 ermask expimages="image05-2keV_expmap.fits \
        detmasks="detmask.fits" \
        threshold1=0.2 \
        threshold2=1.0