Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
jonas.sinjan
hrt_pipeline
Commits
fd28fb82
Commit
fd28fb82
authored
Jun 15, 2021
by
jonas
Browse files
readme update + rm incorrect cont pos shift print - kll run
parent
5f929b0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
fd28fb82
...
...
@@ -39,7 +39,7 @@ using conda
```
bash
conda create
--name
<env_name>
--file
requirements.txt
```
2.
Change fits files paths in
```run.py```
2.
Change fits files paths
, desired processing steps and output directory
in
```run.py```
3.
Execute
```run.py```
...
...
hrt_pipe.py
View file @
fd28fb82
...
...
@@ -208,10 +208,12 @@ def phihrt_pipe(data_f,dark_f,flat_f,norm_f = True, clean_f = False, sigma = 59,
first_cpos
=
cpos_arr
[
0
]
result
=
all
(
c_position
==
first_cpos
for
c_position
in
cpos_arr
)
if
(
result
):
print
(
"All the scans have the same continuum wavelength position
, shifting all to 0th index if not already there
"
)
print
(
"All the scans have the same continuum wavelength position"
)
else
:
print
(
"The scans have different continuum_wavelength postitions!
\n
Attempting to shift all to the 0th index"
)
print
(
"The scans have different continuum_wavelength postitions! Please fix
\n
Ending Process"
)
exit
()
data
=
np
.
stack
(
data_arr
,
axis
=
-
1
)
data
=
np
.
moveaxis
(
data
,
0
,
-
2
)
#so that it is [y,x,24,scans]
...
...
run.py
View file @
fd28fb82
from
hrt_pipe
import
phihrt_pipe
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
_V20210
32218
51C_016
220
1100.fits'
flatfield_fits_filename
=
'../fits_files/solo_L0_phi-hrt-flat_
20210321T210847
_V20210
6071
51
4
C_016
321
1100.fits'
darkfield_fits_filename
=
'../fits_files/solo_L0_phi-fdt-ilam_20200228T155100_V202002281636_0022210004_000.fits'
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
clean_f
=
True
,
out_demod_file
=
True
,
out_dir
=
'../hrt_pipe_results/kll/'
,
rte
=
'False'
)
\ No newline at end of file
Write
Preview
Markdown
is supported
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