The HANNING function is used to create a "window" for Fourier Transform filtering. It can be used to create both Hanning and Hamming windows.
This routine is written in the IDL language. Its source code can be found in the file
hanning.pro
in the
lib
subdirectory of the IDL distribution.