Assigning resonances to atoms