data_model.md 6.5 KB
Newer Older
Chen Yili's avatar
Chen Yili committed
1
2
# L1-CPI-C Data model

Chen Yili's avatar
Chen Yili committed
3
4
- `---`表示在模块算法失败的情况下按照实际情况填写,比如无论模块是否成功,时间戳都应该填写实际值

Chen Yili's avatar
Chen Yili committed
5
6
7
8
## File: *_VIS_SCI_*.*fits

### File contents

Chen Yili's avatar
Chen Yili committed
9
10
11
12
13
14
15
| HDU  | data                                            | note       |
|------|-------------------------------------------------|------------|
| HDU0 | None                                            | PrimaryHDU |
| HDU1 | [reduced image (1k x 1k), mask image (1k x 1k)] | ImageHDU   |
| HDU2 | [reduced image (1k x 1k), mask image (1k x 1k)] | ImageHDU   |
| ...  | ...                                             | ImageHDU   |
| HDUn | [reduced image (1k x 1k), mask image (1k x 1k)] | ImageHDU   |
Chen Yili's avatar
Chen Yili committed
16
17
18
19
20
21
22

### HDU0

| keyword | value | comment       | fill value    | type | module    |
|---------|:------|---------------|---------------|------|-----------|
| SIMPLE  | True  | Fits standard | True          | bool | csst_sims |     

Chen Yili's avatar
Chen Yili committed
23
### HDUn
Chen Yili's avatar
Chen Yili committed
24

Chen Yili's avatar
Chen Yili committed
25
26
#### Science image related

Chen Yili's avatar
Chen Yili committed
27
28
29
30
31
| keyword   | value                 | comment                                         | fill value   | type | module                   |
|-----------|:----------------------|-------------------------------------------------|--------------|------|--------------------------|
|  VER_PIPE | '0.01'                | version of CPI-C pipeline                       | '0.01'       | str  | csst_cpic                |
|  VER_QC0  | '0.01'                | version of CPI-C QC0                            | '0.01'       | str  | csst_cpic                |
|  VER_QC1  | '0.01'                | version of CPI-C QC1                            | '0.01'       | str  | csst_cpic                |
Chen Yili's avatar
Chen Yili committed
32
33
34
|  STA_PIPE | 0                     | state of CPI-C pipeline                         | -1            | i8   | csst_cpic                |
|  STA_QC0  | 0                     | state of CPI-C QC0                              | -1            | i8   | csst_cpic                |
|  STA_QC1  | 0                     | state of CPI-C QC1                              | -1            | i8   | csst_cpic                |
Chen Yili's avatar
Chen Yili committed
35
36
37
38
39
40
41
42
43
44
|  STM_PIPE | '2022-12-30T10:18:53' | Time stamp of CPI-C pipeline processing         | ---          | str  | csst_cpic                |
|  NAME     | 'HR 8799'             | name of target                                  | ---          | str  | csst_cpic                |
|  I_MEAN   | 10.0                  | mean value of total noise of dark zone          | -9999        | f32  | csst_cpic                |        
|  I_STD    | 1833.333333333333     | std value of total noise of dark zone           | -9999        | f32  | csst_cpic                |
|  I_MARK   | 'S'                   | Status flag for image classify                  | 'S'          | str  | csst_cpic                |
|  CTE_NAM  | 'CTE.fits'            | name of CTE reference file                      | '-1'         | str  | csst_cpic                |
|  CTEV_VAL | 99.99                 | value of vertical CTE                           | -9999        | f32  | csst_cpic                |
|  CTEH_VAL | 99.99                 | value of horizontal CTE                         | -9999        | f32  | csst_cpic                |
|  BP_NAM   | 'mask.fits'           | name of mask reference file                     | '-1'         | f32  | csst_cpic                |
|  BP_NUM   | 10                    | number of bad pixel                             | -1           | i16  | csst_cpic                |
Chen Yili's avatar
Chen Yili committed
45
|  B_NAM    | 'bias.fits'           | name of bias reference file                     | -1     s      | str  | csst_cpic                |
Chen Yili's avatar
Chen Yili committed
46
47
48
49
50
51
52
53
54
|  B_MEAN   | 5.1                   | mean value of bias reference image              | -9999        | f32  | csst_cpic                |
|  B_STD    | 1.2                   | std value of bias reference image               | -9999        | f32  | csst_cpic                | 
|  SP_NUM   | 10                    | number of saturated pixels                      | -1           | i16  | csst_cpic                |
|  D_NAM    | 'dark.fits'           | name of dark reference file                     | '-1'         | str  | csst_cpic                |
|  D_MEAN   | 0.1                   | mean value of dark reference image              | -9999        | f32  | csst_cpic                |
|  D_STD    | 0.1                   | std value of dark reference image               | -9999        | f32  | csst_cpic                |
|  F_NAM    | 'flat.fits'           | name of flat reference file                     | -1           | str  | csst_cpic                |
|  F_MEAN   | 10.0                  | mean value of flat reference image              | -9999        | f32  | csst_cpic                |
|  F_STD    | 5.0                   | std value of flat reference image               | -9999        | f32  | csst_cpic                |
Chen Yili's avatar
Chen Yili committed
55
56
57
|  NL_NAM   | 'nonlin.fits'         | name of nonlinear correction reference file     | '-1'           | str  | csst_cpic                |
|  BG_NAM   | 'bg.fits'             | name of background reference file               | '-1'           | str  | csst_cpic                |s
|  CR_MOD   | 'lacosmic'            | mode of CR clean                                |' -1'           | str  | csst_cpic                |
Chen Yili's avatar
Chen Yili committed
58
59
|  CR_NUM   | 10                    | number of cosmic ray                            | -1           | i16  | csst_cpic                | 

Chen Yili's avatar
Chen Yili committed
60
#### mask image related
Chen Yili's avatar
Chen Yili committed
61
62
63

| keyword   | value                 | comment                                         | fill value   | type | module                   |
|-----------|:----------------------|-------------------------------------------------|--------------|------|--------------------------|
Chen Yili's avatar
Chen Yili committed
64
65
66
67
68
69
70
|  FLAG1     | 0                     | normal pixels                                   | 0            | i8   | csst_cpic                |
|  FLAG2     | 1                     | bad pixels                                      | 1            | i8   | csst_cpic                |
|  FLAG3     | 2                     | hot pixels                                      | 2            | i8   | csst_cpic                |
|  FLAG4     | 4                     | warm pixels                                     | 4            | i8   | csst_cpic                |
|  FLAG5     | 8                     | saturated pixels                                | 8            | i8   | csst_cpic                |
|  FLAG6     | 16                    | pixels contaminated by cosmic ray               | 16            | i8   | csst_cpic                |
|  FLAG7     | 32                    | pixels contaminated by sputnik                  | 32            | i8   | csst_cpic                |