Extraction of resonances from transient fields