detection energy program ........................\energy total vs time sacan.m ........................\pd to pf.m