#Since these are photometry-mode observations, #we do not wish to split the input list by scan leg number. scan_leg = 0 #Run the module "medfilter", which estimates the background of the #input images and outputs background images and background-subtracted images. run_medfilter = 1 #Detect sources in the background-subtracted images so that they can be #masked out when creating the flat field. run_detect = 1 #Mask out the detected pixels. mask_bright = 1 use_median = 0 #Stacks up all the bcd's and find the median or trimmed average for each #array pixel position. create_flat = 1 #DO NOT run the module "medfilter" on the flat. #Basically, background-subtract the flat. run_medfilter_flat = 0 #DO NOT use the background-subtracted flat. use_median_flat = 0 #Divide the input images by either the flat or the background-subtracted flat #(if run_medfilter_flat = 1 and use_median_flat = 1). apply_flat = 1 #DO NOT delete intermediate files. delete_intermediate_files = 0 #Set the output directory, where the produces of flatfield.pl will be placed. OUTPUT_DIR = mopex_flat #Within the above output directory, specify the subdirectory in which the flat #(and the associated uncertainty and coverage) images will be placed. FLAT_DIR = ./ #Within the output directory, specify the subdirectory in which the #flattened BCD images will be placed. CORRECT_DIR = Correct #Specify the list of unflatted BCDs, from which the first frames have been #excluded. IMAGE_STACK_FILE_NAME = InputImageList.txt #Specify the list of pipeline-produced uncertainty images that go with #the unflatted BCDs. SIGMALIST_FILE_NAME = SigmaList.txt #Specify the list of DCE status masks that go with the unflatted BCDs. #These are the final status masks containing all of the information pertaining #to each BCD. DCE_STATUS_MASK_LIST = DmaskList.txt #Specify the single status mask that is applied to all input image files. #This mask contains information about permanent detector problems. PMASK_FILE_NAME = cal/mips24_pmask.fits #Set the fatal bit pattern for the Dmasks and the Pmask. Fatal bits will #not be used by the mosaicker or in source extraction. DCE_Status_Mask_Fatal_BitPattern = 18692 PMask_Fatal_BitPattern = 17408 #When background-subtracting the input BCDs, set the X, Y size in pixels of #the window used to compute the background. Also set the number of pixels #within this window that will be rejected before the median is computed. &MEDFILTER Window_X = 45, Window_Y = 45, N_Outliers_Per_Window = 40, &END #When deciding which pixels correspond to sources which should be masked out #before determining the background, set the following parameters: &DETECT #The maximum area (pixels) of a detected pixel cluster before iterative, #thresholding., Detection_Max_Area = 90000, #The minimum area (pixels) for a detected pixel cluster to be retained;, #smaller clusters are discareded., Detection_Min_Area = 4, #The number of sigma above the mean to be used as the initial threshold, #used for cluster detection., Detection_Threshold = 3, &END #Specify that the flat should be created using a median rather than a #timmed average. If Mode = median, as below, top and bottom are irrelevant. #If Mode = trim_ave, then Top and Bottom specify the fraction of the pixels to #be trimmed above and below the mean. &FLAT Mode = median, Top = 0., Bottom = 0., &END #Divides the input images either by flat.fits, if use_median_flat = 0, #or flat_median.fits if use_median_flat = 1 &IMLISTARITH &END