Գրեք սա: Photometric calibration of the supernova legacy survey fields