subtract_bias#

astropop.image.processing.subtract_bias(image, master_bias, inplace=False)#

Subtract a master_bias frame from a FrameData.

Parameters:
image: `~astropop.framedata.FrameData` compatible

Image to perform the bias correction. Quantity, numerical values and CCDData are also suported.

master_bias: `~astropop.framedata.FrameData` compatible

Master bias image to be subtracted from the image.

inplace: bool, optional

If True, the operations will be performed inplace in the image.

Returns:
FrameData:

New bias corrrected FrameData instance if inplace, else the image FrameData instance.

Notes

  • This function will just subtract a master bias image from the original image. The master bias calculation, by handling several bias images, must be done previously.

  • If image is not a FrameData instance, inplies in inplace=False, and a new FrameData instance will be created.