background_deviation_box¶
- ccdproc.background_deviation_box(data, bbox)[source]¶
Determine the background deviation with a box size of bbox. The algorithm steps through the image and calculates the deviation within each box. It returns an array with the pixels in each box filled with the deviation value.
- Parameters:
- data
numpy.ndarray
ornumpy.ma.MaskedArray
Data to measure background deviation.
- bboxint
Box size for calculating background deviation.
- data
- Returns:
- background
numpy.ndarray
ornumpy.ma.MaskedArray
An array with the measured background deviation in each pixel.
- background
- Raises:
- ValueError
A value error is raised if bbox is less than 1.