Normalized FlatField ===================== The ``FlatField`` class is responsible for storing the flatfield correction factors. It provides methods to read and create normalized flatfields. .. note:: The method ``read_module_parameters_from_file`` expects a text file in the format below. Each line denotes the DG parameters for each module. .. code-block:: text module 0 center 643.320033188550 +- 0.0000 conversion 0.657661167459868E-04 +- 0.0000 offset 0.00000000000000 +- 0.0000 module 1 center 633.044070300816 +- 0.0000 conversion 0.657618957538105E-04 +- 0.0000 offset 5.00486981153634 +- 0.0000 If youre file format deviates from the above format implement your custom file reader inheriting from the class ``SimpleFileInterface`` (:ref:`simplefileinterface`) and pass it to the function. .. note:: The method ``read_bad_channels_from_file`` expects a text file using the format below. Each line denotes the index of a bad channel. Consecutive bad channels can be stored on one line e.g. channels with 20-42 are bad channels. .. code-block:: text 1 2 20-42 100 1002-1004 If youre file format deviates from the above format implement your custom file reader inheriting from the class ``SimpleFileInterface`` (:ref:`simplefileinterface`) and pass it to the function. .. doxygenclass:: angcal::FlatField :members: :undoc-members: :private-members: