fratio_to_solidangle#
- fratio_to_solidangle(fratio, geometry='circular')[source]#
Convert f-ratios into solid angles.
The solid angle is
coef / (fratio_y * fratio_x), withcoef = pi / 4for a circular pupil andcoef = 1for a square one.- Parameters:
fratio (
numpy.ndarray) – F-ratio(s) of the optical elements. If 0-dimensional, the same value is used for both the y and x directions. Otherwise, the first axis must have length 2 and holds(fratio_y, fratio_x), e.g. an array of shape(2, nelements).geometry (
stror array_like ofstr, optional) – Pupil shape of the optical element(s),"circular"or"square"; must broadcast withfratio_y. Default is"circular".
- Returns:
numpy.ndarray– Solid angle(s) in steradian.- Raises:
NotImplementedError – If
geometrycontains values other than"circular"or"square".