OIS is a Python package and a C command-line program to perform optimal image subtraction on astronomical images.
It offers different methods to subtract images:
- Modulated multi-Gaussian kernel (as described in [alard1998])
- Delta basis kernel (as described in [bramich2008])
- Adaptive Delta Basis kernel (as described in [miller2008])
Each method can (optionally) simultaneously fit and remove common background.
All of the methods assume we have a reference image R and a science image I that can be approximately modelled as:
I ≈ R ⊗ K + Bkg
for some background Bkg and some kernel K.
The optimal image subtraction D is then:
D = I − (R ⊗ K + Bkg)
The methods differ in their modelling of K.
Warning
In the ideal case of perfect subtraction, D should contain only noise and optical transients. In practice, tiny image misalignments, saturated stars and poor PSF fitting can leave subtraction artifacts near sources.
installation usage cprog methods api