RectangleAperture

class marxs.optics.RectangleAperture(**kwargs)[source] [edit on github]

Bases: FlatAperture

Select the position where a parallel ray from an astrophysical source starts the simulation.

Define a new MARXS element.

Attributes Summary

area

Area covered by the aperture

Methods Summary

generate_local_xy(n)

Generate x, y in the local coordinate system

Attributes Documentation

area

Area covered by the aperture

Methods Documentation

generate_local_xy(n)[source] [edit on github]

Generate x, y in the local coordinate system

Parameters:
nint

number of x, y coordinate pairs requested

Returns:
x, yarrays of floats

(x, y) coordinates of the photons in the local frame