-
Notifications
You must be signed in to change notification settings - Fork 2
Night Filters
This program is meant to make the process of collecting the different filters from AIJ Excel spreadsheets faster. The user enters however many nights they have and the program goes through and checks those text files for the different columns for,HJD, Amag, and Amag error for the Johnson B, V, and Cousins R filters. The program should let the user know they have entered an invalid prompt without crashing the program and allow the user to retry after each incorrect attempt an entry.
Once this program starts the user is told that the input files should be either 7 or 4 columns long as these are the only acceptable outputs that BSU uses for its research purposes.
The user is then prompted to specify how many nights they have to let the program only run as long as needed and not require the user to tell it to stop. It then prompts the user to enter files paths for each nights input .dat
file that is an output from AIJ. Once a file path is entered, the program checks whether the entered file has 4 or 7 columns to determine the type of output files that will be created at the end.
However, a user cannot mix column length files together otherwise there will be multiple file outputs that will spread the data out.
The program then makes sure that the columns exist and if it does not then lets the user know that one of the columns does not exist and therefore need to retry the program. Once the input files have been entered the program asks the user to enter an output file name without any extension to save all the data to.