SPECTRA: a synchrotron radiation calculation code

Welcome to SPECTRA home page

2023/12/23: Version 11.2.1 has been released.

What is SPECTRA?

SPECTRA is an application software to calculate optical properties of synchrotron radiation (SR) emitted from bending magnets, wigglers (conventional and elliptical) and undulators (conventional, helical, elliptical and figure-8). Calculations of radiation from an arbitrary magnetic field distribution are also available. Parameters on the electron beam and the source can be edited completely on graphical user interfaces (GUIs) and it is possible to show the calculation result graphically. The energy spectrum and radiation power after transmitting various filters and convolution of detector's resolution are also available.

Related Publications

If the users are presenting or publishing their results obtained with using SPECTRA, they are kindly requested to cite the related reference(s).

Request for those who are reporting a bug

When reporting a bug found in SPECTRA, the users are kindly requested to attach the input file (*.json) in the e-mail, which is created before starting any calculation. The input file is placed in the directory specified in the "Output File" subpanel of the GUI, with the prefix specified in the same subpanel as well.

Important Notes on Brilliance Calculation

In version 10.0, rigorous estimation of brilliance based on the Wigner function method has become available, which is in contrast to the traditional method based on the Gaussian approximation. Although the brilliance estimation by the Gaussian approximation is still available for compatibility with the older versions, it is referred to as GA.Brilliance (Gaussian-Approximated) and is distinguished from the rigorous estimation.

Functions supported

Web-application mode

Since ver. 11.0, SPECTRA can be run as a "web-application", as well as the stand-alone desktop application. An example in this web server is running here. Note that, because of the limited resource of the server, the total amount of the memory and CPU time (per process) are limited within 100 MB and 10 minutes, beyond which the calculation is terminated. Please keep in mind that this is just an example, and please do not use it for your "bulky" calculations.

Note on Web Browsers

In web browsers that do not support the "dialog" HTML element (Firefox, Safari), a number of functions are not available in the web-application mode.

Contact Information


Takashi Tanaka