RadialDistributionSource¶
- class marxs.source.RadialDistributionSource(**kwargs)[source] [edit on github]¶
Bases:
AstroSource
Base class for sources where photons follow some radial distribution on the sky
- Parameters:
- radial_distributioncallable
A function that takes an interger as input, which specifies the number of photons to produce. The output must be an
astropy.units.Quantity
object with n angles in it.- func_parobject
radial_distribution
has access toself.func_par
to hold function parameters. This could be, e.g. a tuple with coeffications.- kwargssee
Source
Other keyword arguments include
flux
,energy
andpolarization
. SeeSource
for details.
Define a new MARXS element.
Methods Summary
generate_photons
(exposuretime)Photon positions are generated in a frame that is centered on the coordinates set in
coords
, then they get transformed into the global sky system.Methods Documentation
- generate_photons(exposuretime: Unit('s'))[source] [edit on github]¶
Photon positions are generated in a frame that is centered on the coordinates set in
coords
, then they get transformed into the global sky system.