original_docstring: 
      pupilGen create a circular pupil function in Fourier space.
      Inputs:
              fxlin     : 1D spatial frequency coordinate in horizontal direction
              fylin     : 1D spatial frequency coordinate in vertical direction
              wavelength: wavelength of incident light
              na        : numerical aperture of the imaging system
              na_in     : put a non-zero number smaller than na to generate an annular function
      Output:
              pupil     : pupil function
      
docstring: pupilGen create a circular pupil function in Fourier space.
docstring_tokens: pupilGen create a circular pupil function in Fourier space .
code: def pupilGen(fxlin, fylin, wavelength, na, na_in=0.0):
      '''
      pupilGen create a circular pupil function in Fourier space.
      Inputs:
              fxlin     : 1D spatial frequency coordinate in horizontal direction
              fylin     : 1D spatial frequency coordinate in vertical direction
              wavelength: wavelength of incident light
              na        : numerical aperture of the imaging system
              na_in     : put a non-zero number smaller than na to generate an annular function
      Output:
              pupil     : pupil function
      '''
      pupil = np.array(fxlin[naxis, :]**2+fylin[:, naxis]**2 <= (na/wavelength)**2)
      if na_in != 0.0:
          pupil[fxlin[naxis, :]**2+fylin[:, naxis]**2 < (na_in/wavelength)**2] = 0.0
      return pupil
code_tokens: def pupilGen ( fxlin , fylin , wavelength , na , na_in = 0.0 ) : pupil = np . array ( fxlin [ naxis , : ] ** 2 + fylin [ : , naxis ] ** 2 <= ( na / wavelength ) ** 2 ) if na_in != 0.0 : pupil [ fxlin [ naxis , : ] ** 2 + fylin [ : , naxis ] ** 2 < ( na_in / wavelength ) ** 2 ] = 0.0 return pupil
short_docstring: pupilGen create a circular pupil function in Fourier space.
short_docstring_tokens: pupilGen create a circular pupil function in Fourier space .
comment: '''
      pupilGen create a circular pupil function in Fourier space.
      Inputs:
              fxlin     : 1D spatial frequency coordinate in horizontal direction
              fylin     : 1D spatial frequency coordinate in vertical direction
              wavelength: wavelength of incident light
              na        : numerical aperture of the imaging system
              na_in     : put a non-zero number smaller than na to generate an annular function
      Output:
              pupil     : pupil function
      '''