@@ -10,6 +10,18 @@ Image subtraction requires template image that has to be astrometrically aligned
*STDPipe* also has a couple of functions that may help you downloading template images from publicly available archives. All of them will deliver *ready to use* image that is already projected on the pixel grid of your science frame and has the same shape.
.. code-block:: python
# Get r band image from PanSTARRS with science image original resolution and orientation
@@ -28,6 +40,7 @@ We have a convenience function that may help masking the pixels that are most pr
.. autofunction:: stdpipe.templates.mask_template
:noindex:
Using original Pan-STARRS images
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
@@ -45,7 +58,22 @@ Running image subtraction
*STDPipe* has some basic support for image subtraction through the interface to `HOTPANTS <https://github.com/acbecker/hotpants>`_ image subtraction code that is implemented in :func:`stdpipe.subtraction.run_hotpants`. We recommend checking the HOTPANTS documentation to better understand the concepts and options for it.
.. code-block:: python
# Run the subtraction getting back all possible image planes, assuming the template to be noise-less, and estimating image noise model from its statistics. And also pre-flatting the images before subtraction to get rid of possible background inhomogeneities.
# - `conv` for the template colvolved to match the original image
# - `sdiff` for noise-normalized difference image - ideal for quickly seeing significant deviations!
# - `ediff` for the difference image noise model - you may use it to weight object detection to reject the subtraction artefacts e.g. around brighter objects