Despite the ubiquitous usefulness of electronic configurations (of elements) in explaining their behavious I have not been able to find out exactly how the configurations are determined.
Is there any sure-fire technique to detect them (like x-ray diffraction for crystal structure) or is it based on guesswork, through observation of the various properties and reactions of the elements?