This technology offers a method for space-variant polarization manipulation of enhanced non-directional thermal emission in a narrow spectral peak. This can be used to create thermal sources, for decoding thermal coding or for thermal management. The polarization is accomplished by irradiating non-directional thermal emission on a subwavelength grating supporting surface phonon-polariton or surface plasmon-polariton and discretely controlling the local orientation of the grating.