original_docstring: 
      Sinc squared profile; width is the FWHM of the squared normalized sinc function.
      
      The trunc parameter controls whether or not the sinc squared profile is 
      truncated at the first root (e.g. zeroed out for more distant frequencies).
      
      Parameters
      ----------
      width : float
          Signal width, in Hz
      width_mode : str
          How to interpret `width`. Can be 'fwhm' or 'crossing', for zero crossing.
      trunc : bool, optional
          Whether to truncate signal after first zero crossing
      
docstring: Sinc squared profile; width is the FWHM of the squared normalized sinc function.
  The trunc parameter controls whether or not the sinc squared profile is
  truncated at the first root .
  
  Parameters
  
  width : float
  Signal width, in Hz
  width_mode : str
  How to interpret `width`. Can be 'fwhm' or 'crossing', for zero crossing.
  trunc : bool, optional
  Whether to truncate signal after first zero crossing
docstring_tokens: Sinc squared profile ; width is the FWHM of the squared normalized sinc function . The trunc parameter controls whether or not the sinc squared profile is truncated at the first root . Parameters width : float Signal width in Hz width_mode : str How to interpret ` width ` . Can be ' fwhm ' or ' crossing ' for zero crossing . trunc : bool optional Whether to truncate signal after first zero crossing
code: def sinc2_f_profile(width, width_mode='fwhm', trunc=True):
      """
      Sinc squared profile; width is the FWHM of the squared normalized sinc function.
      
      The trunc parameter controls whether or not the sinc squared profile is 
      truncated at the first root (e.g. zeroed out for more distant frequencies).
      
      Parameters
      ----------
      width : float
          Signal width, in Hz
      width_mode : str
          How to interpret `width`. Can be 'fwhm' or 'crossing', for zero crossing.
      trunc : bool, optional
          Whether to truncate signal after first zero crossing
      """
      width = unit_utils.get_value(width, u.Hz)
      
      # Using the numerical solution for the FWHM
      if width_mode == 'fwhm':
          zero_crossing = (width / 2) / 0.442946470689452
      else:
          zero_crossing = width / 2
      
      def f_profile(f, f_center):
          if trunc:
              return np.where(np.abs(f - f_center) < zero_crossing, 
                              np.sinc((f - f_center) / zero_crossing),
                              0)**2
          else:
              return np.sinc((f - f_center) / zero_crossing)**2
      return f_profile
code_tokens: def sinc2_f_profile ( width , width_mode = 'fwhm' , trunc = True ) : width = unit_utils . get_value ( width , u . Hz ) if width_mode == 'fwhm' : zero_crossing = ( width / 2 ) / 0.442946470689452 else : zero_crossing = width / 2 def f_profile ( f , f_center ) : if trunc : return np . where ( np . abs ( f - f_center ) < zero_crossing , np . sinc ( ( f - f_center ) / zero_crossing ) , 0 ) ** 2 else : return np . sinc ( ( f - f_center ) / zero_crossing ) ** 2 return f_profile
short_docstring: Sinc squared profile; width is the FWHM of the squared normalized sinc function.
short_docstring_tokens: Sinc squared profile ; width is the FWHM of the squared normalized sinc function .
comment: """
      Sinc squared profile; width is the FWHM of the squared normalized sinc function.
      
      The trunc parameter controls whether or not the sinc squared profile is 
      truncated at the first root (e.g. zeroed out for more distant frequencies).
      
      Parameters
      ----------
      width : float
          Signal width, in Hz
      width_mode : str
          How to interpret `width`. Can be 'fwhm' or 'crossing', for zero crossing.
      trunc : bool, optional
          Whether to truncate signal after first zero crossing
      """$SEP$# Using the numerical solution for the FWHM