The FDMNES program calculates the spectra of different spectroscopies related to the real or virtual absorption of x-ray in material. It gives the absorption cross sections of photons around the ionization edge, that is in the energy range of XANES. The calculation is performed with all conditions of rectilinear or circular polarization. In the same way, it calculates the structure factors and intensities of anomalous or resonant diffraction spectra (DAFS or RXS).