Processing POLLUX model spectra

In the following a Python3 script Pollux_crop_convol.py (download here) is introduced which processes model spectra from the Pollux database. With some physical parameters  (8400K, log g 3.8, F/H 1.0) a Pollux spectrum was generated from the Pollux database and downloaded in spec format. Two ASCII files are transferred to the user: xyz.txt, which contains the calculation parameters, including the important variables start wavelength and step (dispersion, step size) as well as a xyz.spec file, which contains 3 columns without heading: Wavelength, absolute flux and normalized flux.

After the start of the program, the input is made one after the other: Path and identifier of the spectrum, start wavelength lambda_min and step size (deltalambda) in the spectrum according to the file xyz.txt,  and the desired standard deviation for the convolution in integer multiples of the step size. Then the wavelength range for the convolution is specified.

A graphic is displayed with the entire spectrum, below the selected section and at the bottom as the third plot the selected section after the convolution. The file xyz_convolved.dat and the graphics are saved in PNG and PDF format.deneb_spec_convolved