PointSource

class marxs.source.PointSource(**kwargs)[source]

Bases: AstroSource

Astrophysical point source.

Parameters

kwargssee Source

Other keyword arguments include flux, energy and polarization. See Source for details.

Define a new MARXS element.

Methods Summary

generate_photons(exposuretime)

Central function to generate photons.

Methods Documentation

generate_photons(exposuretime: Unit('s'))[source]

Central function to generate photons.

Calling this function generates a photon table according to the flux, energy, and polarization of this source. The number of photons depends on the total exposure time, which is a parameter of this function. Depending on the setting for flux the photons could be distributed equally over the interval 0..exposuretime or follow some other distribution.

Parameters

exposuretimeastropy.quantity.Quantity

Total exposure time.

Returns

photonsastropy.table.Table

Table with photon properties.