Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
L1 pipeline
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metis scientific pipeline
L1 pipeline
Commits
c37f3cf9
Commit
c37f3cf9
authored
1 year ago
by
Roberto Susino
Browse files
Options
Downloads
Patches
Plain Diff
Fix some header keywords (CHECKSUM and DATASUM)
parent
7a350071
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
fix_fits_header.pro
+13
-0
13 additions, 0 deletions
fix_fits_header.pro
metis_l1_prep.pro
+514
-512
514 additions, 512 deletions
metis_l1_prep.pro
with
527 additions
and
512 deletions
fix_fits_header.pro
0 → 100644
+
13
−
0
View file @
c37f3cf9
pro
fix_fits_header
,
filename
fits_info
,
filename
,
n_ext
=
n_ext
,
/
silent
for
ext
=
0
,
n_ext
do
begin
data
=
readfits
(
filename
,
header
,
exten_no
=
ext
,
/
silent
)
for
k
=
0
,
n_elements
(
header
)
-
1
do
begin
while
header
[
k
].
matches
(
'\/ +'
)
do
begin
header
[
k
]
=
header
[
k
].
replace
(
'/ '
,
'/ '
)
endwhile
endfor
fits_add_checksum
,
header
,
data
modfits
,
filename
,
0
,
header
,
exten_no
=
ext
endfor
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
metis_l1_prep.pro
+
514
−
512
View file @
c37f3cf9
pro
metis_l1_prep
;
keyword
defining
if
the
detector
reference
frame
must
be
used
for
the
output
ref_detector
=
1
...
...
@@ -94,7 +93,7 @@ pro metis_l1_prep
obt_beg
=
fxpar
(
primary_header
,
'OBT_BEG'
)
obt_end
=
fxpar
(
primary_header
,
'OBT_END'
)
obt_avg
=
(
obt_beg
+
obt_end
)
/
2.0
D
obt_avg
=
(
obt_beg
+
obt_end
)
/
2.0
d
date_beg
=
solo_obt2utc
(
obt_beg
)
date_end
=
solo_obt2utc
(
obt_end
)
...
...
@@ -282,7 +281,7 @@ pro metis_l1_prep
if
datatype
le
2
then
begin
nsumexp
=
ndit
*
ndit1
*
ndit2
xposure
=
dit
/
1000
.
D
0
*
nsumexp
xposure
=
dit
/
1000
.
d
0
*
nsumexp
data
=
long
(
data
)
*
nsumexp
if
~
isa
(
comment
)
then
comment
=
!
null
...
...
@@ -293,7 +292,7 @@ pro metis_l1_prep
journal
,
' nsumexp = '
+
string
(
nsumexp
,
format
=
'(I0)'
)
endif
else
begin
nsumexp
=
1
xposure
=
dit
/
1000
.
D
0
xposure
=
dit
/
1000
.
d
0
endelse
;
adjust
the
primary
header
(
it
is
almost
the
same
for
all
data
product
types
)
...
...
@@ -360,7 +359,6 @@ pro metis_l1_prep
empty_params
=
!
null
if
datatype
eq
0
or
datatype
eq
3
or
datatype
eq
5
then
begin
;
patch
to
fix
the
lack
of
the
keyword
SEQ_NUM
pol_id
=
fxpar
(
primary_header
,
'POL_ID'
,
missing
=
0
)
...
...
@@ -561,6 +559,10 @@ pro metis_l1_prep
journal
,
'HK binary-table extension correctly added.'
;
fix
some
header
keywords
fix_fits_header
,
out_file_name
;
unload
the
spice
kernels
load_spice_kernels
,
kernel_list
=
kernel_list
,
/
unload
...
...
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