def METHOD_NAME(self, enhI, enhW, temp=False):
    if temp:
        mydir = self.get_dir()
        f,fn = tempfile.mkstemp(dir=mydir, suffix='.tmp')
        os.close(f)
    else:
        fn = self.get_imw_path()
    fits = fitsio.FITS(fn, 'rw', clobber=True)
    fits.write_image(enhI)
    fits.write_image(enhW)
    fits.close()
    return fn
    #imfn = self.get_image_path()
    #fitsio.write(imfn, enhI, clobber=True, compress='GZIP')
    #wfn = self.get_weight_path()
    #fitsio.write(wfn, enhW, clobber=True, compress='GZIP')