README.md 1.25 KB
Newer Older
Fang Yuedong's avatar
Fang Yuedong committed
1
2
3
# Pipeline for source injection on CSST images

## Installation
4
5
1. First make sure CSST simulation package is installed
2. Install the source injection packages:
Fang Yuedong's avatar
Fang Yuedong committed
6
```
7
8
9
10
    python setup.py install --user
 ```

## Usage
11
12
13
14
15
16
17
### Run L1 Detrending pipeline (optional)
* If the L1 images are not available, we need first to run the CSST detrending pipeline on the raw images to get the L1 calibrated products. Otherwise this step can be ignored.
* This step removes all the instrumental related effects as well as cosmoic rays
* modify the corresponding ```config_detrending.yaml``` file to configure all running options
```
    python ./measurement_pipeline/run_csst_msc_instrument.py /path/to/config_detrending.yaml
```
18
### Run Source Injection
19
20
* Inject souces onto the L1 (detrended)
* modify the corresponding ```config_injection.yaml``` file to configure all running options
21
22
23
```
    python ./injection_pipeline/injection_pipeline.py /path/to/config_injection.yaml
```
24
25
26
27
28
29
### Run L1 Detection & Photometry pipeline
* Re-detect and redo the photometry measurements on the injected images
* modify the corresponding ```config_photometry.yaml``` file to configure all running options
```
    python ./measurement_pipeline/run_csst_msc_mbi_photometry.py /path/to/config_photometry.yaml
```