SphericalDiskSource¶
- class marxs.source.SphericalDiskSource(**kwargs)[source] [edit on github]¶
Bases:
RadialDistributionSource
Astrophysical source with the shape of a circle or ring.
The
DiskSource
makes a small angle approximation. In contrast, this source implements the full spherical geometry at the cost of running slower. For radii less than a few degrees the difference is negligible and we recommend use of the fasterDiskSource
.- Parameters:
- a_inner, a_outer
astropy.coordinates.Angle
Inner and outer angle of the ring (e.g. in arcsec). The default is a disk with no inner hole (
a_inner
is set to zero.)
- a_inner, a_outer
Define a new MARXS element.
Methods Summary
Radial distribution function.
Methods Documentation
- radial_distribution(n)[source] [edit on github]¶
Radial distribution function.
See http://6degreesoffreedom.co/circle-random-sampling/ for an explanation of how to derive the formula. Note however, that here we use sin instead of cos because we measure the angle from the top.