This module contains all functionality related to fringin in ODI frames, from creating the fringe templates, to finding the ideal fringe scaling factor to actually subtracting the fringe frame.
-make_template
Create a fringe template from collectcells-reduced frames
./podi_fringing.py -make_template (-op=nanmedian.bn) output_template.fits file1.fits file2.fits
-esomethod
Determine the optimal fringe scaling and perform fringe removal
./podi_fringing.py -esomethod fringe_template.fits input.fits output.fits
This routine implements the technique for determining the optimal fringe scaling outlined in Snodgrass & Carry 2013, ESO Messenger 152, 14.
In short, it determines the mean value in a number of regions selected visually to represent dark- and bright spots in the fringe map. The difference between bright and dark represents the fringe amplitude. The same measurements are taken for the same regions in the data frame, informing about the fringe amplitude in the data frame. The ratio between the two amplitudes represents the required fringe scaling factor.
Parameters : |
|
---|---|
Returns: |
|
Create a fringe template from the given list of suitable input frames.
For each frame, compute the sky-level and the sky-countrate. Frames with sky-countrates exceeding a filter-specific level are ignored, as the sky is very likely contaminated by stray light. This also eliminates frames with background gradients. Each frame is then background-subtracted and normalized by its background-level, leaving only the fringe amplitude behind.
To eliminate sources, all data for a given extension are then median-combined. Once this is complete for all available extensions, the resulting fringe maps are written to the output FITS file.