Flat Fielding Algorithm

class modules.flat_fielding.src.alg.FlatFieldingAlg(rawimage, ffi_exts, data_type, config=None, logger=None)[source]

Flat division calculation.

This module defines ‘FlatFielding’ and methods to perform flat-fielding by dividing a raw data frame by a master flat frame.

Parameters:
rawimage

From parameter ‘rawimage’.

Type:

np.ndarray

Raises:

Exception – If raw image and flat frame don’t have the same dimensions

flat_fielding(masterflat)[source]

Divides L0 data by master flat. In pipeline terms: inputs two L0 files, outputs one L0 file.

Parameters:

masterflat (np.ndarray) – The FITS master flat data.

Raises:

Exception – If raw image and flat frame don’t have the same dimensions.

get()[source]

Returns flat-corrected raw image result.

Returns:

The flat-corrected data.

Return type:

self.rawimage