def METHOD_NAME(self):
    import os
    from astrometry.util.miscutils import point_in_poly
    from astrometry.net.wcs import TanWCS
    from scipy.ndimage.morphology import binary_dilation
    hp = self.healpix
    nside = self.nside
    topscale = self.version.topscale
    hpwcs,hpxy = get_healpix_wcs(nside, hp, topscale)
    H,W = int(hpwcs.get_height()), int(hpwcs.get_width())
    bands = 3
    enhI = np.zeros((H,W,bands), np.float32)
    enhW = np.zeros((H,W), np.float32)
    xx,yy = np.meshgrid(np.arange(W), np.arange(H))
    # inside-healpix mask.
    enhM = point_in_poly(xx, yy, hpxy-1.)
    # grow ?
    enhM = binary_dilation(enhM, np.ones((3,3)))
    del xx
    del yy
    npix = np.sum(enhM)
    for b in range(bands):
        enhI[:,:,b][enhM] = np.random.permutation(npix) / float(npix)
    enhW[enhM] = 1e-3
    mydir = self.get_dir()
    # print 'My directory:', mydir
    if not os.path.exists(mydir):
        # print 'Does not exist'
        try:
            os.makedirs(mydir)
            # print 'Created'
        except:
            import traceback
            print('Failed to create dir:')
            traceback.print_exc()
            pass
    tempfn = self.write_files(enhI, enhW, temp=True)
    dbwcs = TanWCS()
    dbwcs.set_from_tanwcs(hpwcs)
    dbwcs.save()
    with transaction.commit_on_success():
        self.move_temp_files(tempfn)
        self.maxweight = 0.
        self.wcs = dbwcs
        self.save()