@deprecated_renamed_argument('clobber', 'overwrite', '1.3')
def writeto(filename, data, header=None, output_verify='exception', overwrite=False, checksum=False):
 hdu = _makehdu(data, header)
 if (hdu.is_image and (not isinstance(hdu, PrimaryHDU))):
  hdu = PrimaryHDU(data, header=header)
 hdu.writeto(filename, overwrite=overwrite, output_verify=output_verify, checksum=checksum)

@ deprecated_renamed_argument ( 'clobber' , 'overwrite' , '1.3' ) def writeto ( filename , data , header = None , output_verify = 'exception' , overwrite = False , checksum = False ) : hdu = _makehdu ( data , header ) if ( hdu . is_image and ( not isinstance ( hdu , PrimaryHDU ) ) ) : hdu = PrimaryHDU ( data , header = header ) hdu . writeto ( filename , overwrite = overwrite , output_verify = output_verify , checksum = checksum )
writes a ~astropy .