ModelCxbFlatBasedEnergy

class ModelCxbFlatBasedEnergy(solidangle_filename='/home/user/projet/ECLAIRs/src/ecpi/common/data/instru/pixels_solid_angle_withcostheta.fits')[source]

Bases: ecpi.simu.lib.sources.ModelSrcInterface

Model for a geometrically flat CXB with energy dependence as specified with the Moretti spectrum.

constructor

Parameters:solidangle_filename (string) – PATH/filename of the solid angle image

Attributes Summary

name Get name.

Methods Summary

get_model([obs_time]) return the shadowgram model
get_noisy_model([obs_time]) Return the shadowgram model with poisson noise.
update() return True if the model is already update with position or not yet defined

Attributes Documentation

name

Get name.

Methods Documentation

get_model(obs_time=None)[source]

return the shadowgram model

Parameters:obs_time (float) – observation time in s
Returns:cxb detector image in ph/pix
Return type:array(float)

Warning

a factor 0.8 is added to this model to

make the count rate equal to the CXB shape case. TBI.

get_noisy_model(obs_time=None)

Return the shadowgram model with poisson noise.

Parameters:obs_time (float) – observation time in seconds
update()

return True if the model is already update with position or not yet defined