create_deviation¶
-
ccdproc.
create_deviation
(ccd_data, gain=None, readnoise=None, disregard_nan=False, 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, optional Gain 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, optional Read noise per pixel. Default is
None
.- disregard_nan: boolean
If
True
, any value of nan in the output array will be replaced by the readnoise.- add_keyword : str,
Keyword
or dict-like, optional Item(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.
- ccd_data :