-- Scarano Jr 24/03/11 -- email: scaranojr@ctio.noao.edu dflat = loadfile("/uyw1/simager/scripts/domeflats2.txt") Bias = loadfile("/uyw1/simager/scripts/bias2.txt") Init = loadfile("/uyw1/simager/scripts/init2.txt") dflat() Bias() Init() Observer = "Sergio Scarano Jr" Institution = "BRAZIL" Project = "SO2011A-008" Filters = {"B","V","R"} FilterName = {} -- Nick names on the Filter Editor (Take care!!! -- Go to the Filter Editor and verify if this names -- are correct.) FilterName.B = "B_Bessell" FilterName.V = "V_Bessell" FilterName.R = "R_Bessell" -- Add exposure times for each filter. For this project -- the exposure times adopted are enought to achieve -- 20000 counts. Expt = {} Expt.B = "5" Expt.V = "5" Expt.R = "3" -- Add the number of exposures for each filter per cycle as: Nexp.U = 2 Nexp = {} Nexp.B = "15" Nexp.V = "15" Nexp.R = "15" -- Intensity of the white spot lamp. Lamp = {} Lamp.B = "60" Lamp.V = "30" Lamp.R = "20" -- Add title names to the object keyword. Title = {} Title.B = "Dome-flat B" Title.V = "Dome-flat V" Title.R = "Dome-flat R" -- DONT EDIT ANYTHING DOWN HERE!!!! --Starting bin2x2 = "2x2" -- Initializing init(Observer,Institution,Project) --Starting 2x2 bias print(" ") print("Starting 2x2 bias") print("=================") print(" ") bias2x2name = "bias2x2" bias2x2_nexp = '50' bias(bias2x2name,bin2x2,bias2x2_nexp) --Starting 2x2 domeflats print(" ") print("Starting Dome Flats") print("===================") print(" ") for i,i_filter in pairs (Filters) do i_expt = Expt[i_filter] i_nexp = Nexp[i_filter] i_lamp = Lamp[i_filter] i_filtername = FilterName[i_filter] i_title = Title[i_filter] flatname = "dflat"..i_filter..bin2x2 print(flatname,i_filtername,bin2x2,i_lamp,i_nexp,i_expt,i_title) domeflats(flatname,i_filtername,bin2x2,i_lamp,i_nexp,i_expt,i_title) end