create_deviation¶
-
ccdproc.
create_deviation
(ccd_data, gain=None, readnoise=None, add_keyword=True)[source]¶ Create a uncertainty frame. The function will update the uncertainty plane which gives the standard deviation for the data. Gain is used in this function only to scale the data in constructing the deviation; the data is not scaled.
Parameters: ccd_data :
CCDData
Data whose deviation will be calculated.
gain :
Quantity
or None, optionalGain of the CCD; necessary only if
ccd_data
andreadnoise
are not in the same units. In that case, the units ofgain
should be those that convertccd_data.data
to the same units asreadnoise
. Default isNone
.readnoise :
Quantity
or None, optionalRead noise per pixel. Default is
None
.add_keyword : str,
Keyword
or dict-like, optionalItem(s) to add to metadata of result. Set to False or None to completely disable logging. Default is to add a dictionary with a single item: The key is the name of this function and the value is a string containing the arguments the function was called with, except the value of this argument.
Returns: ccd :
CCDData
CCDData object with uncertainty created; uncertainty is in the same units as the data in the parameter
ccd_data
.Raises: UnitsError
Raised if
readnoise
units are not equal to product ofgain
andccd_data
units.