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 faster DiskSource.

Parameters:
a_inner, a_outerastropy.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.)

Define a new MARXS element.

Methods Summary

radial_distribution(n)

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.