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 xx and xx .
The process is divided into two sections.