RadialDistributionSource¶
- class marxs.source.RadialDistributionSource(**kwargs)[source]¶
Bases:
AstroSourceBase 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.Quantityobject with n angles in it.- func_parobject
radial_distributionhas access toself.func_parto hold function parameters. This could be, e.g. a tuple with coeffications.- kwargssee
Source Other keyword arguments include
flux,energyandpolarization. SeeSourcefor 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