Donut Class

class astrodonut.donut.Donut(a1, b1, ecc, inc, ring_ratio, width, height)[source]

Bases: object

Represents a single elliptical donut shape rendered as a 2D NumPy array.

This class encapsulates parameters like the size, eccentricity, inclination, and thickness of the donut, and generates a ring-shaped image using those values.

ring()[source]

Generate the 2D donut ring based on the initialized parameters.

Returns:

A 2D NumPy array of shape (height, width) representing the donut intensity model.

Return type:

numpy.ndarray