imag

imag(shadowgram, shadowgram_var, observation: common.mission.observation.EclairsObservation, config: process.imag.core.config.ImagConfiguration, proc_id, show=False)[source]

Imaging and Source detection main process

processing with a loop:
  • make the deconvolution of the shadowgrams image
  • look for x-ray sources
  • model the source
  • clean the sky image
  • look for other sources

sources are found based on the max in SNR image

loop stopped if the fit is not a success or if there are more than 100 sources found

the intensity of the source model is tuned based on a reference simulation with intensity=1

if there is a reference catalog, the found sources are compared to it. A source without any counterpart in the reference catalog set the new_source_flag.

build a catalog of the detected x-ray sources in the sky

Parameters:
  • shadowgram (2D float array) – detector images
  • shadowgram_var (2D float array) – detector image variances
  • observation (EclairsObservation) – observation parameters
  • config – imag configuration
  • proc_id (string) – id number of the process
  • show (bool) – show plots: shadowgrams, first deconvolution and last deconvolution. Default=False
Rtype config:

ImagConfiguration

Returns:

found sources catalog, sky_images, new_source_flag

Return type:

CatalogIdentifiedSources, SkyImages, bool