;pro coo_mag_to_stats_fid ; ;PURPOSE: ; This script will take the input from the .mag.1 files returned by ; DIGIPHOT>DAOPHOT>PHOT (and processed with testscript.cl to extract ; the necessary columns) and the .coo.1 files returned by ; DIGIPHOT>DAOPHOT>DAOFIND and fit the fitted coordinate points ; to a grid. ; ; The grid is set up to have [num]x[num] points. The center of the ; initial grid is eyeballed by examining hr5132a_1_raw.fits and the ; spacing is assumed to be 600 microns/24 microns per ; pixel=25 pixels. A fit is performed on this grid, and a new center ; is determined. This center is then fed to the next iteration and a ; new grid is layed out. ; The process repeats through all [num_of_files]*[letters] files. ; ; In this way, the grid should shift so that two centroids are not ; fit to the same reference point. ; ; The file will output statistics from the .mag.1 and .coo.1 files in ; [stats_directory] ; ;CALLING SEQUENCE ; coo_mag-to_stats_fid, [Date,[Directory,[letter,[stats_directory, ; xcenter,[ycenter,[center_file]]]]]]] ; ; ;INPUTS ; DATE: the string '10','11',or '12' corresponding to ; 2005-05-10,2005-05-11, and 2005-05-12 ; ; LETTER: an array of strings corresponding to the letters of the ; files you want to analyze ; ; STATS_DIRECTORY: the directory to which the statistics will be output ; ; XCENTER: a scalar indicating the approximate x coordinate for the ; center of the grid for the first image ; ; YCENTER: a scalar indicating the approximate y coordinate for the ; center of the grid for the first image ; ; CENTER_FILE: The name of the file to which the fitted centers will ; be written ; ;OUTPUTS ; ; FILES: ; ; ; ---this file contains the following entries ; ID_index=A number 1-625 indicating where on the grid the point is located ; x_coord=The x coordinate of the fitted centroid ; y_coord=The y coordinate of the fitted centroid ; x_error=The error from the IRAF fit ; y_err=The error from the IRAF fit ; mag=The magnitude assessed by IRAF ; sharp=IRAF parameter specificying sharpness ; roundness=IRAF parameter specifiying how "round" the fit was ; x_ref_dif,y_ref_dif ; ;