Anomalous Nernst effect induced terahertz emission in a single ferromagnetic film