Commit aec75b24 authored by Roberto Susino's avatar Roberto Susino
Browse files

Improve journaling in dark-subtraction procedure

parent 484b9f2a
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -49,6 +49,13 @@ function metis_dark_uvda, data, header, cal_pack, error = error, quality_matrix
	; WARN - temporary patch to handle local l1 fits files
	; if tsensor eq 0. then tsensor = -25.

	journal, 'Dark-current correction:'
	journal, '  dit = ' + string(dit, format = '(I0)') + ' ms'
	journal, '  ndit1 = ' + string(ndit1, format = '(I0)')
	journal, '  ndit2 = ' + string(ndit2, format = '(I0)')
	journal, '  obj_cnt = ' + string(obj_cnt, format = '(I0)')
	journal, '  tsensor = ' + string(tsensor, format = '(F0)') + ' degC'

	flag_use_extrapolated = 1
	flag_use_notfullset = 1
	flag_normalize_dark = 0
@@ -136,12 +143,6 @@ function metis_dark_uvda, data, header, cal_pack, error = error, quality_matrix
	if ~ isa(history) then history = !null
	history = [history, 'Dark-current correction: ', '  ' + dark_file]

	journal, 'Dark-current correction:'
	journal, '  dit = ' + string(dit, format = '(I0)') + ' ms'
	journal, '  ndit1 = ' + string(ndit1, format = '(I0)')
	journal, '  ndit2 = ' + string(ndit2, format = '(I0)')
	journal, '  obj_cnt = ' + string(obj_cnt, format = '(I0)')
	journal, '  tsensor = ' + string(tsensor, format = '(F0)') + ' degC'
	journal, '  dark file = ' + dark_file
	journal, '  extrapolated dark = ' + dark[i].extrapol.tolower()

+6 −5
Original line number Diff line number Diff line
@@ -16,6 +16,12 @@ function metis_dark_vlda, data, header, cal_pack, error = error, quality_matrix
	; WARN - temporary patch to handle local l1 fits files
	; if tsensor eq 0. then tsensor = -30.

	journal, 'Bias and dark-current correction:'
	journal, '  dit = ' + string(dit, format = '(F0)') + ' s'
	journal, '  ndit = ' + string(ndit, format = '(I0)')
	journal, '  xposure = ' + string(xposure, format = '(F0)') + ' s'
	journal, '  tsensor = ' + string(tsensor, format = '(F0)') + ' degC'

	; check if one or more bias+dark matrices with same dit, binning, and tsensor exist
	for i = 0, n_elements(bias_dark) - 1 do begin
		if $
@@ -97,11 +103,6 @@ function metis_dark_vlda, data, header, cal_pack, error = error, quality_matrix
	if ~ isa(history) then history = !null
	history = [history, 'Bias and dark-current corrections: ', '  ' + dark_file]

	journal, 'Bias and dark-current correction:'
	journal, '  dit = ' + string(dit, format = '(F0)') + ' s'
	journal, '  ndit = ' + string(ndit, format = '(I0)')
	journal, '  xposure = ' + string(xposure, format = '(F0)') + ' s'
	journal, '  tsensor = ' + string(tsensor, format = '(F0)') + ' degC'
	journal, '  bias/dark file = ' + dark_file
	return, data
end