Switch kde to use rfft, fix interlacing and integration