Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
L2 pipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metis scientific pipeline
L2 pipelines
Commits
aec75b24
Commit
aec75b24
authored
3 years ago
by
Roberto Susino
Browse files
Options
Downloads
Patches
Plain Diff
Improve journaling in dark-subtraction procedure
parent
484b9f2a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
metis_dark_uvda.pro
+7
-6
7 additions, 6 deletions
metis_dark_uvda.pro
metis_dark_vlda.pro
+6
-5
6 additions, 5 deletions
metis_dark_vlda.pro
with
13 additions
and
11 deletions
metis_dark_uvda.pro
+
7
−
6
View file @
aec75b24
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
metis_dark_vlda.pro
+
6
−
5
View file @
aec75b24
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment