flaregti

erosita/flaregti-1.6

Summary:

Description:

Create flare good-time-interval (FLAREGTI) extensions which can be used to filter flares from a dataset. By default these extensions are added to or replace those in the input event file (eventfile), but the gtifile parameter allows them to be placed in a separate file. A fixed threshold flare rate (in the band pimin to pimax) can be specified using the threshold parameter, otherwise it is dynamically determined for each time bin. A FLAREGTI[1-7] extension is created for each detector, containing the unflared intervals for the input intervals (taken from the GTI[1-7] HDUs in the event file).

Bright sources are masked before the light curve is created. An image of the event file is created using binsize pixels between PI values of mask_pimin and mask_pimax. Pixels with a significance greater than detml compared to the surrounding 5x5 pixels are masked out to create a mask image. By default, this mask image (included areas are 1, and excluded 0) is written to mask, with an image with the same binning in the second HDU.

The lightcurve between PI pimin and pimax in timebin time bins is created from unmasked sky pixels. To compute a rate per unit area, the unmasked field of view area is calculated in each time bin and the GTI of the time bin is used, with no vignetting correction.

For the dynamic threshold computation, the sky region is divided into gridsize by gridsize regions. For each grid point, those lightcurve bins are examined for when the aim point of the telescope is within fov_radius radius. To calculate the count rate threshold for a particular time bin, the grid point nearest the telescope pointing position is chosen. The threshold which minimizes the flux of a source of size source_size which can be detected above the average background rate with likelihood source_like is used. If max_threshold is set, then the automatic threshold rates are forced to be less than this value.

To improve the detection of point sources, the creation of a mask, lightcurve and the calculation of thresholds is repeated by mask_iter iterations, where the GTI obtained in the previous iteration is used for the creation of the mask image. This can be set to 1 to disable the repetition.

Parameters:

Default values are given in square parentheses.

Input files:

Output files:

Examples: