## ## SPECMEASURE -- use ascfit to fit line profiles to peaks in ## 1-d grating data ## data_file,f,a,,,,"input data file (must end in '.dat')" # # Data columns are: col1=position, col2=optional bin width # if bin width present: col3=counts or flux, col4=counts_err or flux_err # if bin width not present: col2=counts or flux, col3=counts_err or flux_err # num_cols,i,a,3,3,4,"number of columns in input data file" flux_corrected,b,a,no,,,"Is the input file flux corrected?" peaks_file,f,a,".",,,"input peaks file [root.peaks]" # # In the cont_file and nocont_file files, all 4 columns must be present: # col1=lambda, col2=bin width, col3=counts or flux, col3=counts_err or flux_err # cont_file,f,a,".",,,"input continuum file file [root_cont.dat]" nocont_file,f,a,".",,,"input (data - continuum) file [root_nocont.dat]" output_file1,f,a,".",,,"output best fit params, data w/cont [root.fit1]" output_file2,f,a,".",,,"output best fit params, data w/o cont [root.fit2]" model,s,a,"gauss",gauss|xsgauss|lorentz|lorentzInt,,"line profile type" fit_region,r,a,2.0,0,,"fit region (line_center +/- (fit_region * fwhm_max))" grating,s,a,"HEG","HEG|heg|MEG|meg|LEG|leg",,"Grating associated with the input data" max_fwhm,r,a,4.0,0,,"max allowed fwhm = (line_spread_function * max_fwhm)" min_fwhm,r,a,0.25,0,,"min allowed fwhm = (line_spread_function * min_fwhm)" max_continuum_slope,r,a,0.1,0,1,"Max allowed fractional change in the continuum across a given fit region" use_ascfitlib,b,h,yes,,,"Use ascfit library (yes or no), else use script with logs" ascfit_method,s,h,"simplex","grid|grid-powell|levenberg-marquardt|montecarlo|monte-powell|powell|simplex|simul-ann-1|simul-ann-2|simul-pow-1|simul-pow-2",,"ascfit method: powell, simplex, grid ..." ascfit_stats,s,h,"chi parent","chi gaussian|chi parent|chi gehrel|cash|likelihood|userstat",,"ascfit stats: chi gaussian, chi gehrel, chi parent, cash, likelihood ..." ascfit_confidence,r,h,68.3,"68.3|90.0|99.0",,"Confidence level for delta chi squared" log_file1,f,h,".",,,"ascfit log file 1 [root.log1]" log_file2,f,h,".",,,"ascfit log file 2 [root.log2]" clobber,b,h,no,,,"OK to overwrite existing output and log files?" debug,i,h,1,0,5,"display level (0 = no display)" mode,s,h,"ql",,,