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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metis scientific pipeline
L2 pipelines
Commits
7a4420be
Commit
7a4420be
authored
2 years ago
by
Roberto Susino
Browse files
Options
Downloads
Patches
Plain Diff
Add patch to correct for missing SEQ_NUM keyword
parent
5c0777a9
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_l2_prep_vl_generic.pro
+14
-1
14 additions, 1 deletion
metis_l2_prep_vl_generic.pro
metis_l2_prep_vl_polariz.pro
+16
-0
16 additions, 0 deletions
metis_l2_prep_vl_polariz.pro
with
30 additions
and
1 deletion
metis_l2_prep_vl_generic.pro
+
14
−
1
View file @
7a4420be
...
@@ -35,6 +35,19 @@ pro metis_l2_prep_vl_generic
...
@@ -35,6 +35,19 @@ pro metis_l2_prep_vl_generic
data
=
mrdfits
(
input
.
file_name
,
0
,
primary_header
,
/
silent
)
data
=
mrdfits
(
input
.
file_name
,
0
,
primary_header
,
/
silent
)
;
patch
to
fix
the
lack
of
the
keyword
SEQ_NUM
pol_id
=
fxpar
(
primary_header
,
'POL_ID'
,
missing
=
0
)
if
pol_id
ge
1
and
pol_id
le
4
then
begin
seq_num
=
fxpar
(
primary_header
,
'SEQ_NUM'
,
missing
=
0
)
if
seq_num
eq
0
then
begin
obj_cnt
=
fxpar
(
primary_header
,
'OBJ_CNT'
)
n_pol
=
fxpar
(
primary_header
,
'N_POL'
,
missing
=
4
)
seq_num
=
((
obj_cnt
-
1
)
/
n_pol
+
1
)
fxaddpar
,
primary_header
,
'SEQ_NUM'
,
seq_num
,
before
=
'POL_ID'
endif
endif
;
read
the
quality
matrix
;
read
the
quality
matrix
quality_matrix
=
mrdfits
(
input
.
file_name
,
'quality matrix'
,
/
silent
)
quality_matrix
=
mrdfits
(
input
.
file_name
,
'quality matrix'
,
/
silent
)
...
...
This diff is collapsed.
Click to expand it.
metis_l2_prep_vl_polariz.pro
+
16
−
0
View file @
7a4420be
...
@@ -55,6 +55,22 @@ pro metis_l2_prep_vl_polariz
...
@@ -55,6 +55,22 @@ pro metis_l2_prep_vl_polariz
image
=
mrdfits
(
input
.
file_name
[
k
],
0
,
primary_header
,
/
silent
)
image
=
mrdfits
(
input
.
file_name
[
k
],
0
,
primary_header
,
/
silent
)
;
patch
to
fix
the
lack
of
the
keyword
SEQ_NUM
seq_num
=
fxpar
(
primary_header
,
'SEQ_NUM'
,
missing
=
0
)
if
seq_num
eq
0
then
begin
obj_cnt
=
fxpar
(
primary_header
,
'OBJ_CNT'
)
n_pol
=
fxpar
(
primary_header
,
'N_POL'
,
missing
=
4
)
seq_num
=
((
obj_cnt
-
1
)
/
n_pol
+
1
)
fxaddpar
,
primary_header
,
'SEQ_NUM'
,
seq_num
,
before
=
'POL_ID'
endif
if
k
eq
0
then
comment
=
fxpar
(
primary_header
,
'COMMENT'
)
else
begin
sxdelpar
,
primary_header
,
'COMMENT'
foreach
line
,
comment
do
$
fxaddpar
,
primary_header
,
'COMMENT'
,
line
endelse
header
=
fits_hdr2struct
(
primary_header
)
header
=
fits_hdr2struct
(
primary_header
)
;
====================================
;
====================================
...
...
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