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
5c0777a9
Commit
5c0777a9
authored
3 years ago
by
Roberto Susino
Browse files
Options
Downloads
Patches
Plain Diff
Optimize radiometric calibration procedure
parent
aec75b24
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
metis_rad_cal.pro
+10
-5
10 additions, 5 deletions
metis_rad_cal.pro
with
10 additions
and
5 deletions
metis_rad_cal.pro
+
10
−
5
View file @
5c0777a9
...
@@ -12,7 +12,7 @@ function metis_rad_cal, data, header, cal_pack, polarimetric = polarimetric, nor
...
@@ -12,7 +12,7 @@ function metis_rad_cal, data, header, cal_pack, polarimetric = polarimetric, nor
if
keyword_set
(
polarimetric
)
then
pmp_factor
=
2
.
else
pmp_factor
=
1
.
if
keyword_set
(
polarimetric
)
then
pmp_factor
=
2
.
else
pmp_factor
=
1
.
ndit
=
header
.
ndit
ndit
=
header
.
ndit
end
end
if
if
header
.
filter
.
contains
(
'UV'
,
/
fold
)
then
begin
if
header
.
filter
.
contains
(
'UV'
,
/
fold
)
then
begin
channel
=
cal_pack
.
uv_channel
channel
=
cal_pack
.
uv_channel
...
@@ -82,12 +82,17 @@ function metis_rad_cal, data, header, cal_pack, polarimetric = polarimetric, nor
...
@@ -82,12 +82,17 @@ function metis_rad_cal, data, header, cal_pack, polarimetric = polarimetric, nor
cal_factor
=
cal_factor
/
rad_factor
cal_factor
=
cal_factor
/
rad_factor
cal_error
=
sqrt
((
radiometry
.
rad_response
.
error
/
radiometry
.
rad_response
.
value
)
^
2
+
(
cal_pack
.
instrument
.
pupil_area
.
error
/
cal_pack
.
instrument
.
pupil_area
.
value
)
^
2
+
(
channel
.
angular_pixel
.
error
/
channel
.
angular_pixel
.
value
)
^
2
+
(
unit_error
/
unit_factor
)
^
2
)
cal_error
=
sqrt
((
radiometry
.
rad_response
.
error
/
radiometry
.
rad_response
.
value
)
^
2
$
+
(
cal_pack
.
instrument
.
pupil_area
.
error
/
cal_pack
.
instrument
.
pupil_area
.
value
)
^
2
$
+
(
channel
.
angular_pixel
.
error
/
channel
.
angular_pixel
.
value
)
^
2
$
+
(
unit_error
/
unit_factor
)
^
2
)
if
header
.
filter
.
contains
(
'VL'
,
/
fold
)
then
begin
history
=
[
history
,
' cal. factor = '
+
string
(
cal_factor
,
format
=
'(E8.2)'
)
+
' '
+
units
+
'/DN'
]
history
=
[
history
,
' cal. factor = '
+
string
(
cal_factor
,
format
=
'(E8.2)'
)
+
' '
+
units
+
'/DN'
]
journal
,
' total cal. factor = '
+
string
(
cal_factor
,
format
=
'(E8.2)'
)
+
' '
+
units
+
'/DN'
journal
,
' total cal. factor = '
+
string
(
cal_factor
,
format
=
'(E8.2)'
)
+
' '
+
units
+
'/DN'
journal
,
' cal. factor error = '
+
string
(
cal_error
,
format
=
'(E8.2)'
)
+
' '
+
units
+
'/DN'
journal
,
' cal. factor error = '
+
string
(
cal_error
,
format
=
'(E8.2)'
)
+
' '
+
units
+
'/DN'
endif
endelse
endelse
;
radiometric
calibration
;
radiometric
calibration
...
...
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