README.md 1.59 KB
Newer Older
jonas's avatar
jonas committed
1
# SO/PHI-HRT PIPELINE
jonas's avatar
jonas committed
2

jonas's avatar
jonas committed
3
4
5
6
7
8
9
10
11
Reduction software for SO/PHI-HRT instrument on the ESA Solar Orbiter
## PHI-HRT data reduction
1. read in science data (+scaling) open path option + open for several scans at once
2. read in flat field (+scaling)- just accepts one flat field fits file
3. read in dark field (+scaling)
4. apply dark field
5. option to clean flat field with unsharp masking (Stokes V only)
6. normalise flat field
7. apply flat field
jonas's avatar
jonas committed
12
8. prefilter correction
jonas's avatar
jonas committed
13
14
15
16
17
18
9. read in field stop
10. apply field stop
11. demodulate with const demod matrix <br />
        a) option to output demod to fits file <br />
12. normalise to quiet sun
13. calibration <br />
jonas's avatar
jonas committed
19
20
        a) cross talk correction <br />
        (if required) b) ghost correction - **not implemented yet** <br />
jonas's avatar
jonas committed
21
22
14. rte inversion with cmilos <br />
        a) output rte data products to fits file <br />
jonas's avatar
jonas committed
23
24
25

## NOTE
At the moment it cannot process compressed data (5 or 6 bit compression)
jonas's avatar
jonas committed
26
## SETUP
jonas's avatar
jonas committed
27

jonas's avatar
jonas committed
28
1. Compile milos:
jonas's avatar
jonas committed
29

jonas's avatar
jonas committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
```bash
make clean
make
```
        
2. Setup virtual environment from requirements.txt

using pip
```bash
pip install -r requirements.txt
```
using conda
```bash
conda create --name <env_name> --file requirements.txt
```
45
2. Change fits files paths, desired processing steps and output directory in ```run.py```
jonas's avatar
jonas committed
46
47
48
49
50
51
52
53
54

3. Execute ```run.py```

```bash
python run.py
```

Authors: <br />

jonas's avatar
jonas committed
55
Jonas Sinjan - Max Planck Institute for Solar System Research, Goettingen, Germany
jonas's avatar
jonas committed
56
57
58

Credit: <br />

jonas's avatar
jonas committed
59
60
- SPGPylibs for the foundation, from which it was expanded upon
- CMILOS: RTE INVERSION C code for SOPHI (based on the ILD code MILOS by D. Orozco) Author: juanp (IAA-CSIC)