Table of Contents
SDQA WCS-Failure-Check Stage
Purpose
Independently verify the WCS solution obtained for a CCD image by matching extracted sources with astrometric-reference sources. Both types of sources are pre-filtered for specific properties that are appropriate for this task.
Inputs
From Policy
- minMatches (mininum required number of matches between extracted and reference sources)
- maxRmsRadDist (maximum allowed RMS radial distance between extracted and reference sources, in arcseconds)
- matchRadius (maximum allowed radius for matches between extracted sources and reference sources, in arcseconds)
- minStellarity (minimum stellarity for selection of extracted sources; dimensionless)
- nLocalBkgSigma (number of standard deviations above background required of peak pixel in source extraction, for selection of extracted sources; dimensionless)
From Clipboard
- ccdExposureId
- Set of extracted sources (sources extracted from the CCD image of interest)
- Set of astrometric-reference sources.
Outputs
The outputs are put on the clipboard as a persistable SDQA-rating vector with key = "astromVerifSdqaRatings", ultimately to be stored in the database. The vector has the following SDQA ratings:
- Number of matches (SDQA metric = "nAstromVerifMatches")
- RMS radial distance (SDQA metric = "astromVerifRmsRadDist")
Assumptions
- Reference sources have been pre-filtered to have the following properties:
- Bright (range of magnitudes must cover a variety of backgrounds)
- Isolated
- High stellarity
- Non-confused
- Very low proper motion
- Non-diffraction-spike origin (in case of USNOB1 catalog; Dustin Lang has an improved version of this catalog, with Tycho-2 stars correctly merged back in, and stars more reliably marked as diffraction spikes or halos)
- Optical band appropriate for image data
- List of reference sources sorted by R.A. is preferable (but not required).
- Reference sources are packaged in lsst.afw.detection.SourceSet? object.
- List of extracted sources sorted by R.A. is preferable (but not required).
- Extracted sources are packaged in lsst.afw.detection.SourceSet? object.
Attributes of Extracted Sources
- R.A. (degrees)
- Dec. (degrees)
- Peak pixel (D.N.; e.g., SExtractor MU_MAX divided by pixel area in arcseconds squared)
- Stellarity (dimensionless value between 0 and 1)
- Local background (D.N.)
- Local background standard deviation (D.N.; e.g., derivable from SExtractor MU_THRESHOLD et al.)
- Confusion flag (e.g., SExtractor bits 0 and 1)
- Saturated flag (e.g., SExtractor bit 2)
- Image-edge flag (e.g., SExtractor bit 3)
- Corruption flag (e.g., SExtractor bit 4)
Attributes of Reference Sources
- R.A. (degrees)
- Dec. (degrees)
Selection Criteria for Extracted Sources
- Stellarity > minStellarity
- Flags = 0 (e.g., SExtractor bit flags; i.e., no confusion, saturation, edge effects, or corruption)
- Peak > threshold (= local background plus nLocalBkgSigma times local background standard deviation)
Processing Flow
- Read ccdExposureId from clipboard.
- Read extracted sources from clipboard.
- Apply selection criteria to extracted sources.
- Sort extracted sources by R.A.
- Query database for reference sources.
- Sort reference sources by R.A.
- Match extracted sources with reference sources.
- Compute radial root-mean-squared (RMS) radial distance of the matches, in arcseconds.
- Put SDQA ratings on clipboard for database storage: nAstromVerifMatches and astromVerifRmsRadDist.
- Raise exception if nAstromVerifMatches < minMatches.
- Raise exception if astromVerifRmsRadDist > maxRmsRadDist.
Questions
- What is the best flux or magnitude range to use when querying for the reference sources?
- How will the database query for reference sources assure that they are isolated (e.g., have no neighboring sources within, say, 5 arcseconds)? One option is to obviate this query constraint by creating a sub-catalog containing only suitably isolated sources. Another more flexible option, which would result in a costlier database query, would be to store in each record the distance to the closest neighboring source.
- Currently the source class does not store attributes for stellarity and peak-peak flux --how can this information be provided?
- What source-extraction flags are currently available?
- What information about simulated references sources will be made available (cf. USNOB1-catalog attributes)?
- Is the specified pre-filtering criteria for extracted and reference sources complete?
