Tekstiviesti: Photometric calibration of the supernova legacy survey fields