Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexis Carlotti
HARMONI-HC
Commits
372805c4
Commit
372805c4
authored
Nov 12, 2019
by
Arthur Vigan
Browse files
Recenter non-masked data
parent
a1e563d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
hrm-hc/MAIN_multiproc.py
View file @
372805c4
...
...
@@ -802,7 +802,6 @@ if __name__ == '__main__':
#MASK_temp = MASK
MASK_temp
=
shift
(
MASK
,
[
-
shift_pix_FPM
,
0
],
output
=
None
,
order
=
1
,
mode
=
'constant'
,
cval
=
0.0
,
prefilter
=
True
)
for
k
in
range
(
N_LD
):
if
ADC_flag
==
1
:
shift_value
=
1000
*
DISPER_ADC
(
lambda_vect
[
0
]
*
1e6
,
lambda_vect
[
k
]
*
1e6
,
90
-
ELEVATION
(
DEC
,
HA_0
),
z_min
,
z_max
)
...
...
@@ -814,8 +813,8 @@ if __name__ == '__main__':
#print(shift_value*MASperPIXEL)
I_temp
[
k
]
=
I_temp
[
k
]
*
np
.
flipud
(
MASK_temp
)
I_temp
[
k
]
=
shift
(
I_temp
[
k
],
[
shift_value
,
0
],
output
=
None
,
order
=
1
,
mode
=
'constant'
,
cval
=
0.0
,
prefilter
=
True
)
I_temp_nomask
[
k
]
=
shift
(
I_temp_nomask
[
k
],
[
shift_value
,
0
],
output
=
None
,
order
=
1
,
mode
=
'constant'
,
cval
=
0.0
,
prefilter
=
True
)
image_filename
=
path_directory
+
'PSF_HALO_ON_masked_centered_Nexp{0:04d}.fits'
.
format
(
i
)
image_filename_nomask
=
path_directory
+
'PSF_HALO_ON_notmasked_centered_Nexp{0:04d}.fits'
.
format
(
i
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment