1 |
#ifndef __QUALLEV0_H |
2 |
#define __QUALLEV0_H |
3 |
//These are the meaning of the bits put into the QUALLEV0 keyword for a drms |
4 |
//record from the ingest_lev0 processing. |
5 |
|
6 |
//Bit0 is the low bit (0x01) |
7 |
//The first 4 bits are determined from the Img sturct passed back by |
8 |
//imgdecode() |
9 |
#define Q_OVFL 0x01 //overflow flag set |
10 |
#define Q_HDRERR 0x02 //header error flag set |
11 |
#define Q_CMPERR 0x04 //compression error in image |
12 |
#define Q_LPXERR 0x08 //last pixel error |
13 |
|
14 |
//image status packet is missing if FSN != HSQFGSN |
15 |
#define Q_NOISP 0x10 //no ISP |
16 |
#define Q_MISSI 0x20 //missing image |
17 |
#define Q_CORRUPT 0x40 //corrupt image (FSN=469769216 0x1c001c00) |
18 |
#define Q_INVALTIME 0x80 //T_OBS = 1958.01.01_00:00:00_UTC |
19 |
|
20 |
//missvals is from Img struct totalvals-datavals |
21 |
#define Q_MISS0 0x100 //missvals > 0 |
22 |
#define Q_MISS1 0x200 //missvals > 0.01*totalvals |
23 |
#define Q_MISS2 0x400 //missvals > 0.05*totalvals |
24 |
#define Q_MISS3 0x800 //missvals > 0.25*totalvals |
25 |
|
26 |
//IRIS specific |
27 |
#define Q_DARK 0x10000 //dark image; IIFRMTYP = 'DARK' |
28 |
#define Q_LED 0x40000 //led image; IIFRMTYP = 'LED' |
29 |
#define Q_ISSOPEN 0x20000 //ISS loop open; IISSLOOP = 'OPEN' |
30 |
|
31 |
#define Q_REOPENED 0x40000000 //image reopened during reconstruction; NPACKETS value may be incorrect |
32 |
#define Q_MISSALL 0x80000000 //data is completely missing. high bit |
33 |
|
34 |
//Fits keyword and Image Status Packet (ISP) keyword translation: |
35 |
// |
36 |
// ISQFSN = I_SQ_FRAME_SN |
37 |
// IISSLOOP = I_ISS_LOOP |
38 |
// IIFRMTYP = I_IMG_FRAME_TYPE |
39 |
// |
40 |
#endif |
41 |
|