def uvsamp_from_psf(psf, longestbll):