Program to add noise to a spectra
This is the current version which takes a spectra and produces several fits files with degrading SNR
v1.01 2015-04-22 @author: gdcteixeira
- [numpy]
- [astropy]
- [PyAstronomy]
In order to make The_Noizzier an executable file you need to change the file permissions of The_Noizzier_v1.01.py using the command:
chmod +x The_Noizzier_v1.01.py
filenames - a file with the filenames of the spectra to be degraded. Additionally you can also input your own measured SNR of that spectra in the same file. If so the file should be an ASCII file with two columns, the filename, SNR
numb_degradations - the number of degraded spectra you want to obtain. This number will influence the noise introduced at each step
The output consists of : fits files for spectra with increasing levels of noise. The filename will have an estimative of the SNR of that spectra
The_Noizzier is a relatively fast code so it should finish with relative speed. Limiting factors of speed, the number of files to introduce noise into and the number of degradations demanded.
To get help on the input use the command ./The_Noizzier_v1.01.py -h
In this repository it is also available a directory with one spectrum, in order to test the program.
Running the program with the test suite ./The_Noizzier_v1.01.py list_of_files_v2.dat -d 10
The v1.01 no longer requires a configuration file. Added argparse module.
If you have any problems with the code or want to give feedback, please contact the author: G. D . C. Teixeira