optimized get_bcd_phot() for use of metadata