- Create master files
-
$m_d$ : Dark (darkflat) -
$m_d^f$ : Dark for flats -
$m_f$ : Flat
-
- Create dead pixels maps:
- Hot pixels map from
$m_d$ (mask, or set them to median) - Dead pixels map from
$m_f$ (mask, or set them to local gaussian)
- Hot pixels map from
- Calibrate images :
$s=\frac{s-m_d}{m_f-m_d^f}$
- Clean
$s$ with dead pixels maps (local gaussian or mask) - Find sources in
$s$ (coarse) (photutils or SExtractor) - Plate-solve and update WCS (astroquery or SCAMP)
- Calibrate photometry
- Search stars in SDSS (once for all frames)
- RANSAC fit to find ZP and slope
- Calibrate pixel values with RANSAC (to Jy)
- Clean cosmic rays (local gaussian or mask)
- Remove sky
- For all
$s$ :- Find sources in
$s$ (fine) (photutils or SExtractor) - Aperture and PSF photometry (photutils or SExtractor)
- Find sources in
- Match sources in different catalogs by DBSCAN clustering
- Find moving sources
- Calculate dispersion of RA/DEC (MAD + threshold)
- Linear regression for RA/DEC
- Plot RA/DEC for moving sources
- Find variable and stable sources
- Calculate dispersion of flux/mag (MAD + threshold)
- Plot flux/mag
- Identify target: Match target RA/DEC to global catalog