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
008a336f
Commit
008a336f
authored
3 years ago
by
Roberto Susino
Browse files
Options
Downloads
Patches
Plain Diff
Add the keyword POLANGLE to VL-image FITS headers
parent
60040876
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
metis_l2_prep_vl_generic.pro
+26
-0
26 additions, 0 deletions
metis_l2_prep_vl_generic.pro
with
26 additions
and
0 deletions
metis_l2_prep_vl_generic.pro
+
26
−
0
View file @
008a336f
...
...
@@ -158,6 +158,32 @@ pro metis_l2_prep_vl_generic
sxdelpar
,
primary_header
,
'BLANK'
;
read
the
calibration
curve
to
convert
pmp
raw
voltages
(
dacpol
)
into
effective
polarization
angles
dacpol_cal
=
cal_pack
.
vl_channel
.
dacpol_cal
if
header
.
pol_id
ne
5
then
begin
if
fix
(
header
.
hdr_vers
)
le
4
then
begin
case
header
.
pol_id
of
0
:
dacpol
=
header
.
dac1pol1
1
:
dacpol
=
header
.
dac1pol1
2
:
dacpol
=
header
.
dac1pol2
3
:
dacpol
=
header
.
dac1pol3
4
:
dacpol
=
header
.
dac1pol4
endcase
endif
if
fix
(
header
.
hdr_vers
)
ge
5
then
begin
dacpol
=
header
.
dac1pol1
endif
k
=
where
(
dacpol_cal
.
dacpol
eq
dacpol
)
angle
=
dacpol_cal
.
angle
[
k
]
angle
=
float
(
angle
[
0
])
fxaddpar
,
primary_header
,
'POLANGLE'
,
angle
,
'[deg] Polarization angle'
,
after
=
'POL_ID'
endif
;
append
wcs
keywords
wcs
=
metis_wcs
(
header
,
cal_pack
,
ref_detector
=
ref_detector
)
...
...
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