Seol mar théacs é seo: Photometric calibration of the supernova legacy survey fields