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 :
CCDDataData whose deviation will be calculated.
gain :
Quantityor None, optionalGain of the CCD; necessary only if
ccd_dataandreadnoiseare not in the same units. In that case, the units ofgainshould be those that convertccd_data.datato the same units asreadnoise. Default isNone.readnoise :
Quantityor None, optionalRead noise per pixel. Default is
None.add_keyword : str,
Keywordor 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 :
CCDDataCCDData object with uncertainty created; uncertainty is in the same units as the data in the parameter
ccd_data.Raises: UnitsError
Raised if
readnoiseunits are not equal to product ofgainandccd_dataunits.