Pošljite SMS: Photometric calibration of the supernova legacy survey fields