gemseeing (Aug2000) | gemini.gemtools | gemseeing (Aug2000) |
The main idea in GEMSEEING is to locate the objects using DAOFIND, fit their radial profiles in a number of different ways using PSFMEASURE, and perform a reasonable selection of objects designed to omit extended objects, cosmic-ray-hits and objects that are too faint. GEMSEEING can either work on all the objects found by DAOFIND, or for a faster (and slightly more uncertain) determination use only a small subset of the objects. GEMSEEING may also be run interactively in which case the user selects the objects using the image display.
If run interactively, steps 1-4 are replaced withWhen GEMSEEING is run non-interactively, the steps in the process are as follows: 1) Derive the approximate background level and noise in the background 2) Set radius=2*fwhmmin/pixscale, fwhmmin=fwhmin/4, fwhmmax=4*fwhmin if the input parameters were zero 3) Find objects using DAOFIND 4) If fl_useall=no, then select a subset not larger than approximately maxnobj. 5) Using PSFMEASURE derive direct measurement of the FWHM and the FWHM from fitting a Moffat profile I = Ic (1 + (r / alpha)**2)**(-beta) (see also PSFMEASURE) 6) Select objects - attempt to get bright unsaturated stars Selection criteria: 1) unsaturated && m_dao < mdaofaint && fwhm>=fwhmmin && fwhm<fwhmmax 2) derive median_dmag (dmag=m_dao-m_psf) 3) m_psf < mdaofaint + median_dmag 4) sharplow<= sharp <= sharphigh (default 0.3-1.0) 5) derive median_sharp and stddev_sharp 6) sharp within median_sharp +- sharpsig*stddev_sharp 7) derive median_dmag and stddev_dmag 8) dmag within median_dmag +- dmagsig*stddev_dmag 9) derive median_fwhm and stddev_fwhm 10) fwhm within median_fwhm +- fwhmsig*stddev_fwhm 7) Flag the objects in psffile.tab that were selected 8) Rerun PSFMEASURE for the selected objects, deriving the 50% and 85% encircled energy diameters: EED50 and EED85 9) If fl_strehl=yes and the required information is found in stdatabase an approximate determination of the Strehl ratio is derived from flux(EED50)*2, the peak value from the central pixel, and the normalized peak value in the diffraction limited case as listed in stdatabase. 10) Update image header keywords if fl_update=yes (default) 11) Update table header keywords if fl_keep=yes
1) Display the image 2) The user chooses the objects using the image cursorFurther, step 6 is omitted and all selected objects are used, except if the fit with PSFMEASURE fails. In the interactive mode, the objects are marked on the display and labeled with the derived FWHM in arcsec.
In non-interactive mode GEMSEEING stops on errors if there are less than three unsaturated objects. If less than five objects are remaining after passing one of the selection criteria the rest of the selection criteria are omitted.
GEMSEEING produces four output files.
File Explanation -------------------------------------------------------------------------- coords The coordinate file. Default name is image_coo psffile ASCII output file from PSFMEASURE. Default name is image_seepsffile.tab An STSDAS table containing the information from coords and psffile. Default name is image_see.tab
psffile_psf.tab An STSDAS table containing information for the objects selected for use. Default name is image_see_psf.tab
The STSDAS tables contain one row for each object. The columns in the STSDAS tables are as follows.
Column Description -------------------------------------------------------------------------- MFWHM FWHM from fit with Moffat profile [pixels] BETA beta from fit with Moffat profile X_PSF X coordinate from PSFMEASURE Y_PSF Y coordinate from PSFMEASURE M_PSF magnitude from PSFMEASURE FWHM FWHM from PSFMEASURE [pixels] EPS ellipticity from PSFMEASURE POS position angle from PSFMEASURE SAT flag for saturation (Y/N) X_DAO X coordinate from DAOFIND or given interactively Y_DAO Y coordinate from DAOFIND or given interactively M_DAO magnitude from DAOFIND, column not present if fl_inter=yes SHARPNESS sharpness from DAOFIND, column not present if fl_inter=yes SROUND round from DAOFIND, column not present if fl_inter=yes GROUND round from DAOFIND, column not present if fl_inter=yes ID id number, column not present if fl_inter=yes DMAG M_PSF-M_DAO, column not present if fl_inter=yes FLAG FLAG=1 object used for determination FLAG=0 object not used for determination
psffile_psf.tab contains only the objects used for the final determination of the parameters. The columns are the same, but MFWHM and FWHM are in arcsec. In addition psffile_psf.tab contains the following columns.
Column Description -------------------------------------------------------------------------- EED50 50% encircled energy diameter EED85 85% encircled energy diameter FLUX Half the total flux in ADU MAG magnitude within the median EED50, from PHOT MERR uncertainty on MAG MSKY sky level in ADU/pixel PEAK Peak value including sky level [ADU] NPEAK Normalized peak value STREHL Strehl ratio
The STSDAS tables are especially useful if the results for the individual objects need to be inspected. The tables can be printed to the screen with TPRINT. See the help pages for the tasks in the package TTOOLS for further information on STSDAS tables.
GEMSEEING can be rerun from the coordinate file, from the first PSFMEASURE output file psffile, or from the first STSDAS table psffile.tab. In the last case only the selection of the objects and the second PSFMEASURE are rerun.
fl_overwrite=yes can be used to rerun all steps, overwriting any existing output file.
The default values in database (gemtools$gemseeing.dat) reflects expected seeing with various instruments. If the instrument is defined in database, default values can be used for the parameters pixscale, fwhmin, datamax, radius, buffer, and width.
The determination of the Strehl ratio relies on the information in stdatabase (gemtools$gemseeing_strehl.dat). This information includes instrument, pixel scale, filter and the normalized peak counts for a diffraction limited image. The current version of gemtools$gemseeing_strehl.dat contains information for Hokupaa+QUIRC, NIRI-F/32, NIRI-F/14, and GMOS used on the Gemini Telescopes. Only broad band filters are included in the table. GEMSEEING will currently not automatically derive Strehl ratios for images obtained with narrow-band images, but the user can work around this limitation by manually setting the filter header keyword to the closest broad-band filter, run GEMSEEING, and setting the filter header keyword back to the original value.
The output parameters from GEMSEEING are
NPSF Number of objects used for the determination FWHM Direct determination of FWHM of the PSF MFWHM FWHM derived by fitting a Moffat profile to the PSF EED50% 50% encircled energy diameter EED85% 85% encircled energy diameter STREHL Strehl ratio EPS Ellipticity of the PSF POS Position angle of the PSF (CCW from the X-axis)
The values are derived as the median values of the selected individual measurements. Below the median value of each parameter is given the standard deviation of the individual measurements included in the median value. If fl_cleed=yes and there are more than 15 objects, then the determinations of EED50 and EED85 are cleaned for objects giving systematically too high values. The systematically too high values are typically caused by crowding of objects in the field. The cleaning improves the determination of EED50 and EED85 as well as the Strehl ratio.
The Strehl ratio is derived as
STREHL = 1.08 * maximum pixel intensity /(flux(EED50)*2)/npeak
where flux(EED50) is the flux within the 50% encircled energy diameter, and npeak is the normalized peak counts given in the database file stdatabase. The factor 1.08 is a statistical correction for the objects not being centered on the pixels. The factor is valid for FWHM = 3-6 pixels, which is typical for Hokupa'a/QUIRC.
If GEMSEEING is used for images obtained with adaptive optics (AO), then an estimate of the FWHM for non-AO images obtained under the same observing conditions is needed in order to derive reliable estimates of EED50, EED85 and the Strehl ratio. If fl_update=yes the header of the input image is updated with the following keywords:
Keyword Explanation ------------------------------------------------------------------ GEMSEE Current date and time SEEPRG gemseeing: psfmeasure direct/eed50/eed85/moffat/strehl or gemseeing: psfmeasure direct/eed50/eed85/moffat FWHMPSF Direct measurement of FWHM in arcsec NPSF Number of stars used for the measurement MFWHM FWHM in arcsec from Moffat fit EED50 50% encircled energy diameter in arcsec EED85 85% encircled energy diameter in arcsec EPSPSF Ellipticity of PSF POSPSF Position angle of PSF (CCW from the X-axis) STREHLRA Strehl ratio (if derived)
1. Determine the image quality of a sky subtracted image niriskysub from NIRI-F/32, including determination of the Strehl ratio:
cl> gemseeing niriskysub
The output from this will with verbose=yes look like this2. Determine the image quality of an image from NIRI, deleting the output files afterwards, and not listing the intermediate results:---------------------------------------------------------------------------- GEMSEEING -- Tue May 23 16:00:30 HST 2000
Image niriskysub[SCI] Sigma threshold 10.0 Sky level [ADU] 557.0 Image niriskysub[SCI] Total Nobj 16 Fitting Nobj 16 Radius [pixels] 34.09 Image niriskysub[SCI] FWHM [arcsec] 0.2545
Image NPSF FWHM MFWHM EED50% EED85% STREHL EPS POS niriskysub[SCI] 5 0.2545 0.2436 0.2846 0.5287 0.0446 0.060 36.0 [stddev] 0.0148 0.0057 0.1192 0.9348 0.0041 0.067 10.2
Pixel scale = 0.0220 arcsec/pixel
cl> gemseeing niriskysub fl_keep- verbose-
The output from this isImage NPSF FWHM MFWHM EED50% EED85% STREHL EPS POS niriskysub[SCI] 5 0.2545 0.2436 0.2846 0.5287 0.0446 0.060 36.0 [stddev] 0.0148 0.0057 0.1192 0.9348 0.0041 0.067 10.2
Pixel scale = 0.0220 arcsec/pixel
The algorithm may also fail if the parameters critical for DAOFIND are not set correctly and noise peaks and/or cosmic-ray hits are found by DAOFIND.
The absolute values of the Strehl ratios depend critically on fwhmnonao.