Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jonas.sinjan
hrt_pipeline
Commits
33e7017b
Commit
33e7017b
authored
Jun 14, 2021
by
jonas
Browse files
clean run.py
parent
ce9d9855
Changes
2
Hide whitespace changes
Inline
Side-by-side
hrt_pipe.py
View file @
33e7017b
...
...
@@ -80,21 +80,23 @@ def phihrt_pipe(data_f,dark_f,flat_f,norm_f = True, clean_f = False, sigma = 59,
'''
PHI-HRT data reduction pipeline
1. read in science data (+scaling) open path option + open for several scans at once
2. read in flat field
- just one, so any averaging must be done befor
e
3.
option to clean flat field with unsharp mask
ing
4.
read in
dark field
5.
apply dark field
2. read in flat field
(+scaling)- just accepts one flat field fits fil
e
3.
read in dark field (+scal
ing
)
4.
apply
dark field
5.
option to clean flat field with unsharp masking
6. normalise flat field
7. apply flat field
8. prefilter correction - not implemented yet
9. read in field stop
10. apply field stop
11. demodulate with const demod matrix
a) option to output demod to fits file
12. normalise to quiet sun
13. calibration
a) ghost correction - not implemented yet
b) cross talk correction - not implemented yet
14. rte inversion with cmilos
a) output rte data products to fits file
Parameters
----------
...
...
@@ -133,10 +135,8 @@ def phihrt_pipe(data_f,dark_f,flat_f,norm_f = True, clean_f = False, sigma = 59,
correct the ghost in bottom left corner
ItoQUV: bool, DEFAULT: False
apply I -> Q,U,V correction
rte: bool, DEFAULT: False
invert using cmilos
out_rte_file: bool, DEFAULT: False
output of rte result to fits file
rte: str, DEFAULT: False
invert using cmilos, options: 'RTE' for Milne Eddington Inversion, 'CE' for Classical Estimates, 'CE+RTE' for combined
Returns
-------
...
...
run.py
View file @
33e7017b
from
hrt_pipe
import
phihrt_pipe
sciencedata_fits_filenames
=
[
'solo_L0_phi-hrt-ilam_0667414748_V202103221851C_0142230201.fits'
]
flatfield_fits_filename
=
'solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits'
darkfield_fits_filename
=
'solo_L0_phi-fdt-ilam_20200228T155100_V202002281636_0022210004_000.fits'
sciencedata_fits_filenames
=
[
'
../fits_files/
solo_L0_phi-hrt-ilam_0667414748_V202103221851C_0142230201.fits'
]
flatfield_fits_filename
=
'
../fits_files/
solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits'
darkfield_fits_filename
=
'
../fits_files/
solo_L0_phi-fdt-ilam_20200228T155100_V202002281636_0022210004_000.fits'
folder
=
'../fits_files/'
if
folder
!=
None
:
def
add_folder_to_file_path
(
folder
,
filename_list
):
return
[
folder
+
i
for
i
in
filename_list
]
sciencedata_fits_filenames
=
add_folder_to_file_path
(
folder
,
sciencedata_fits_filenames
)
flatfield_fits_filename
=
folder
+
flatfield_fits_filename
darkfield_fits_filename
=
folder
+
darkfield_fits_filename
data
=
phihrt_pipe
(
sciencedata_fits_filenames
,
darkfield_fits_filename
,
flatfield_fits_filename
,
norm_stokes
=
True
,
clean_f
=
True
,
out_demod_file
=
True
,
out_dir
=
'./'
,
rte
=
'RTE'
)
\ No newline at end of file
data
=
phihrt_pipe
(
sciencedata_fits_filenames
,
darkfield_fits_filename
,
flatfield_fits_filename
,
norm_stokes
=
True
,
clean_f
=
True
,
out_demod_file
=
True
,
out_dir
=
'./'
,
rte
=
'RTE'
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment