Flat Fielding Primitive

class modules.flat_fielding.src.flat_fielding.FlatFielding(action: Action, context: ProcessingContext)[source]

This module defines class FlatFielding, which inherits from KPF0_Primitive and provides methods to perform the event flat fielding in the recipe.

Parameters:
  • KPF0_Primitive – Parent class

  • action (keckdrpframework.models.action.Action) – Contains positional arguments and keyword arguments passed by the FlatFielding event issued in recipe.

  • context (keckdrpframework.models.processing_context.ProcessingContext) – Contains path of config file defined for flat_fielding module in master config file associated with recipe.

rawdata

Instance of KPF0, assigned by actions.args[0]

Type:

kpfpipe.models.level0.KPF0

masterflat

Instance of KPF0, assigned by actions.args[1]

Type:

kpfpipe.models.level0.KPF0

data_type

Instance of KPF0, assigned by actions.args[2]

Type:

kpfpipe.models.level0.KPF0

config_path

Path of config file for the computation of flat fielding.

Type:

str

config

Config context.

Type:

configparser.ConfigParser

logger

Instance of logging.Logger

Type:

logging.Logger

alg

Instance of FlatFielding, which has operation codes for flat fielding.

Type:

modules.flat_fielding.src.alg.FlatFielding