Normalizing 1d spectra to the continuum is a common task that needs to be done. Most astronomical spectroscopy programs can do this with fits files. But what if the 1d spectrum is in ASCII format (.dat, .csv, .txt)?
Well, we can convert the ascii file into the fits format. The other option is to stay in ASCII format and use the scripts 1d_ascii_generate_normalization_points.py and 1d_ascii_Normalization.py .
The process is divided into two sections.