util_master_flat

util_master_flat#

excalibuhr.utils.util_master_flat(dt, dark, combine_mode='median', badpix_clip=5)[source]#

combine flat frames; generate bad pixel map

Parameters:
  • dt (list) – a list of flat frames to be combined

  • dark (array) – dark frame to be subtracted from the flat

  • combine_mode (str) – the way of combining flat frames: mean or median

  • badpix_clip (int) – sigma of bad pixel clipping

Returns:

master, badpix – combined flat frame and bad pixel map

Return type:

array