Published December 11, 2025
| Version v1
Software
Open
injector.py — Synthetic source injector for recovery and completeness studies
Authors/Creators
Description
injector.py v1.5 — Inject synthetic point sources or transient events into real FITS images.
Features
• Accepts any single-extension FITS image with valid WCS
• Injects a properly centered Gaussian PSF at user-specified RA/Dec or pixel (x, y) position
• Converts input magnitude to flux using actual header zero-point (MAGZPT, ZPMAG, etc.; fallback 25.0)
• Supports point source, simple transit dip, supernova-like burst, or microlensing boost
• Performs image bounds checking and safe WCS handling
• Preserves original header and WCS in output
Intended for pipeline validation and completeness testing.
Usage example:
python injector.py science.fits --ra 266.4168 --dec -29.0078 --mag 19.2 --type point --fwhm 2.8 --out injected.fits
Made by Britt (2025) — MIT License
Files
c329d4f8520ce5b85932e6f72b350647-3f5029a631c15b458e2e7316987b123b4a74c3e5.zip
Files
(2.2 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:810686657dfac1364f302cf15b40cf39
|
2.2 kB | Preview Download |