Skip to content
Snippets Groups Projects
Commit aec75b24 authored by Roberto Susino's avatar Roberto Susino
Browse files

Improve journaling in dark-subtraction procedure

parent 484b9f2a
Branches
Tags
No related merge requests found
...@@ -49,6 +49,13 @@ function metis_dark_uvda, data, header, cal_pack, error = error, quality_matrix ...@@ -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 ; WARN - temporary patch to handle local l1 fits files
; if tsensor eq 0. then tsensor = -25. ; 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_extrapolated = 1
flag_use_notfullset = 1 flag_use_notfullset = 1
flag_normalize_dark = 0 flag_normalize_dark = 0
...@@ -136,12 +143,6 @@ function metis_dark_uvda, data, header, cal_pack, error = error, quality_matrix ...@@ -136,12 +143,6 @@ function metis_dark_uvda, data, header, cal_pack, error = error, quality_matrix
if ~ isa(history) then history = !null if ~ isa(history) then history = !null
history = [history, 'Dark-current correction: ', ' ' + dark_file] 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, ' dark file = ' + dark_file
journal, ' extrapolated dark = ' + dark[i].extrapol.tolower() journal, ' extrapolated dark = ' + dark[i].extrapol.tolower()
......
...@@ -16,6 +16,12 @@ function metis_dark_vlda, data, header, cal_pack, error = error, quality_matrix ...@@ -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 ; WARN - temporary patch to handle local l1 fits files
; if tsensor eq 0. then tsensor = -30. ; 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 ; 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 for i = 0, n_elements(bias_dark) - 1 do begin
if $ if $
...@@ -97,11 +103,6 @@ function metis_dark_vlda, data, header, cal_pack, error = error, quality_matrix ...@@ -97,11 +103,6 @@ function metis_dark_vlda, data, header, cal_pack, error = error, quality_matrix
if ~ isa(history) then history = !null if ~ isa(history) then history = !null
history = [history, 'Bias and dark-current corrections: ', ' ' + dark_file] 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 journal, ' bias/dark file = ' + dark_file
return, data return, data
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment