fratio_to_solidangle

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), with coef = pi / 4 for a circular pupil and coef = 1 for 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 (str or array_like of str, optional) – Pupil shape of the optical element(s), "circular" or "square"; must broadcast with fratio_y. Default is "circular".

Returns:

numpy.ndarray – Solid angle(s) in steradian.

Raises:

NotImplementedError – If geometry contains values other than "circular" or "square".