ImagingMiniPipeline

class ImagingMiniPipeline(catalog_simu=<common.sky.catalog.CatalogFovBasic object>, simulator=None, deconvolver=None, src_finder=None)[source]

Bases: object

mini-pipeline block used in IMAGING

includes simu shadowgrams, deconv sky, src finder and fit

init with everything at 0

Parameters:

Methods Summary

deconv([decon_step]) build the sky image of the source seen by ECLAIRs
fit_source([snr_min, peak_position]) find and fit the source in the sky image
reset([catalog_simu]) reset all attributes to 0
simu_shadowgram(time_exp_s[, normalized]) build the shadowgrams model of the source using the simulation module

Methods Documentation

deconv(decon_step='just_decon')[source]

build the sky image of the source seen by ECLAIRs

Need self.shadowgrams to be set before.

Set self.sky_count, self.sky_variance and self.sky_snr

decon_step = with_init or with_prep (or just_decon)

Parameters:decon_step (string) – what deconvolution step to begin with. Choices={‘with_init’, ‘with_prep’}. Default=’just_decon’.
fit_source(snr_min=5, peak_position=None)[source]

find and fit the source in the sky image

Need self.sky_count and self.sky_snr to be set before.

Parameters:
  • snr_min (float) – snr limit for the source localisation. Default=5.
  • peak_position ([float, float]) – position of the peak to be fitted, if already known. [pix_y, pix_z]. Default=None
reset(catalog_simu=<common.sky.catalog.CatalogFovBasic object>)[source]

reset all attributes to 0

Parameters:catalog_simu (CatalogFovBasic) – sources catalog to be use by the simulator
simu_shadowgram(time_exp_s, normalized=False)[source]

build the shadowgrams model of the source using the simulation module

simulation without any bkg

set self.shadowgrams

Parameters:
  • time_exp_s (float) – observation time in s
  • normalized (bool) – to get shadowgram’s values between 0 and 1 (default=False)