ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/lev0/apps/quallev0_iris.h
Revision: 1.1
Committed: Thu Jan 24 18:36:01 2013 UTC (10 years, 8 months ago) by jim
Content type: text/plain
Branch: MAIN
CVS Tags: Ver_8-8, Ver_8-11, Ver_8-2, Ver_8-10, Ver_8-0, Ver_8-1, Ver_8-6, Ver_LATEST, Ver_8-4, Ver_9-41, Ver_8-3, Ver_8-5, Ver_8-12, Ver_8-7, Ver_9-5, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, HEAD
Log Message:
initial

File Contents

# Content
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