def resels2fwhm(resels, nNodes, element_based=False):
    """
	Get the FWHM from resel counts based on the number of field nodes.
	
	:Parameters:

		*resels* --- resel counts
		
		*nNodes* --- number of field nodes (in broken fields: number of unbroken nodes)
		
		*element_based* --- element-based sampling (default: node-based sampling)
		
	:Returns:

		*fwhm* --- field FWHM
	
	:Example:
	
		>>> resels = (1, 10.0)
		>>> w = rft1d.geom.resels2fwhm(resels, 101) #yields 10.0
		>>> resels = (2, 6.9)
		>>> w = rft1d.geom.resels2fwhm(resels, 71) #yields 10.0
		
	:Note:
		
		See **rft1d.geom.resel_counts** for details regarding the keyword "element_based"** and node-based vs. element-based sampling.
	"""
    if element_based:
        return float(nNodes) / resels[1]
    else:
        return float(nNodes - resels[0]) / resels[1]
