added code to ignore negative flux returned by xsc_phot.pro