A median image gets generated from the stack of undistorted single drizzle images.
Create a median image from the singly drizzled images.
Authors: | |
---|---|
Warren Hack | |
License: | |
http://www.stsci.edu/resources/software_hardware/pyraf/LICENSE |
Top-level interface to createMedian step called from top-level MultiDrizzle.
This function parses the input parameters then calls the _median() function to median-combine the input images into a single image.
return useful help from a file in the script directory called __taskname__.help
Print out syntax help for running astrodrizzle
Parameters: | |
---|---|
file : str (Default = None)
|
The singly drizzled science images are combined to create a single median image. This median combination gets performed section-by-section from the input single drizzled images. Each section corresponds to a contiguous set of lines from each image taking up no more than 1Mb in memory, such that combining 10 input images would only require 10Mb for these sections. The goal of this step is to establish an estimate for what the fully cleaned image should look like in order to enable better bad pixel detection, in addition to improving the alignment of the image stack. Creating a median image from the aligned and undistorted input images allows for a statistical rejection of bad pixels.
The final median image serves as the only output from this step.
For more information on the science applications of the createMedian task, see the DrizzlePac Handbook.
Parameters: | |
---|---|
input : str or list of str (Default = None)
configObj : configObject (Default = None)
editpars : bool (Default = False)
inputDict : dict, optional
|
|
Other Parameters: | |
median : bool (Default = No)
median_newmasks : bool (Default = Yes)
combine_maskpt : float (Default = 0.7)
combine_type : str {‘average’, ‘median’, ‘sum’, ‘minmed’} (Default = ‘minmed’)
combine_nsigma : float (Default = ‘4 3’)
combine_nlow : int (Default = 0)
combine_nhigh : int (Default = 0)
combine_lthresh : float (Default = INDEF)
combine_hthresh : float (Default = INDEF)
combine_grow : int (Default = 1)
combine_bufsize : float (Default = None)
|
Examples
For createMedian, the user interface function is median:
>>> from drizzlepac import createMedian
>>> createMedian.median('*flt.fits')