README.md 2.07 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
### 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
```
16
    run_csst_detrending /path/to/config_detrending.yaml
17
```
Fang Yuedong's avatar
Fang Yuedong committed
18
19
20
21
* Products:
    * L1 calibrated images (detrended + cosmic rays removed)
    * Weight maps
    * Flag maps
22

23
### Run Source Injection
Fang Yuedong's avatar
Fang Yuedong committed
24
* Inject souces onto the L1 calibrated images
Fang Yuedong's avatar
Fang Yuedong committed
25
26
* Modify the corresponding ```config_injection.yaml``` file to configure all running options
* An object catalog class which inherits from ```observation_sim.mock_objects.CatalogBase``` needs to be implemented and imported in ```injection.injection_pipeline.py```. This is to construct a list of to be injected ```observation_sim.mock_objects.MockObject```.
27
```
28
    run_csst_injection /path/to/config_injection.yaml
29
```
Fang Yuedong's avatar
Fang Yuedong committed
30
31
32
* Products:
    * L1 calibrated images with synthetic sources injected
    * Truth catalogs for injected sources
33

34
### Run L1 Detection & Photometry pipeline
Fang Yuedong's avatar
Fang Yuedong committed
35
36
37
* CSST detection and photometry pipeline, can be used to:
    * Detect and do photometry measurements on the L1 calibrated images
    * Re-detect and redo photometry measurements on the injected images
38
39
* modify the corresponding ```config_photometry.yaml``` file to configure all running options
```
40
    run_csst_photometry /path/to/config_photometry.yaml
41
```
Fang Yuedong's avatar
Fang Yuedong committed
42
43
44
45
46
47
* Products:
    * Detection catalogs with photometric information
    * Flux maps
    * PSF models (in psfex format)
    * Segmentation maps
    * Sky maps
48
49
50
51
52
53

### Evaluation
* ```evaluation```package provided tools and example notebooks for evaluating:
    * Injected objects
    * Detection completeness
    * Photometric accuracy