OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ffm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ffm_hdr_Struc
 
union  ffm_rec_Struc
 
struct  ffmStruct
 

Macros

#define byte   unsigned char
 
#define QF1_OFF   0
 
#define QF1_LEN   2
 
#define QF1_SCALE_FACTOR   1/5
 
#define QF2_OFF   2
 
#define QF2_LEN   1
 
#define ID_OFF   3
 
#define ID_LEN   4
 
#define TAG_OFF   7
 
#define TAG_LEN   8
 
#define SOH_OFF   15
 
#define SOH_LEN   775
 
#define TLM_LEN   88
 
#define TDI_LEN   16
 
#define START_LEN   16
 
#define DARK_LEN   16
 
#define STOP_LEN   16
 
#define DARK_OFF   32
 
#define LAC_TLM_OFF   790
 
#define LAC_TLM_LEN   TLM_LEN
 
#define LAC_OFF   878
 
#define LAC_LEN   20624
 
#define LAC_TDI_OFF   0
 
#define LAC_TDI_LEN   TDI_LEN
 
#define LAC_START_OFF   16
 
#define LAC_START_LEN   START_LEN
 
#define LAC_DARK_OFF   DARK_OFF
 
#define LAC_DARK_LEN   DARK_LEN
 
#define LAC_IMAGE_OFF   48
 
#define LAC_IMAGE_LEN   20560
 
#define LAC_STOP_OFF   20608
 
#define LAC_STOP_LEN   STOP_LEN
 
#define GAC_OFF   790
 
#define GAC_LEN   4032
 
#define GAC_TDI_OFF   0
 
#define GAC_TDI_LEN   TDI_LEN
 
#define GAC_START_OFF   16
 
#define GAC_START_LEN   START_LEN
 
#define GAC_DARK_OFF   DARK_OFF
 
#define GAC_DARK_LEN   DARK_LEN
 
#define GAC_IMAGE_OFF   48
 
#define GAC_IMAGE_LEN   3968
 
#define GAC_STOP_OFF   4016
 
#define GAC_STOP_LEN   STOP_LEN
 
#define GAC_TLM_OFF   20950
 
#define GAC_TLM_LEN   TLM_LEN
 
#define GAC_SPR_OFF   21390
 
#define GAC_SPR_LEN   112
 
#define SPR_OFF   21502
 
#define SPR_LEN   2
 
#define FFM_LEN   21504
 
#define FFMRECLEN   FFM_LEN
 
#define FFM_RAW_LEN   13860
 
#define RECORDER_SIZE   65536
 
#define RECORDER2_LIMIT   59990
 
#define RECORDER_TLM_SIZE   (RECORDER_SIZE - RECORDER2_LIMIT)
 
#define ALLOCATE_GAC_SIZE(x)   ((x * FFM_RAW_LEN + 500) / 1000 - RECORDER_SIZE)
 
#define ALLOCATE_LAC_SIZE(x)   ((x * FFM_RAW_LEN + 500) / 1000)
 
#define FFMHDRLEN   512
 
#define FF_MISSING_FRAMES   1
 
#define GAC_PER_FFM   5
 
#define BANDS   8
 
#define PIXEL_BLEN   BANDS*2
 
#define PIXEL_WLEN   BANDS
 
#define SCI_DATA_BOFF   2*PIXEL_BLEN
 
#define SCI_DATA_WOFF   2*PIXEL_WLEN
 
#define START_SYNC_OFF   0
 
#define DARK_RESTORE_OFF   1
 
#define GAC_PIXEL_NUM   248
 
#define LAC_PIXEL_NUM   1285
 
#define MAX_PIXEL_VALUE   1023
 
#define MIN_PIXEL_VALUE   0
 
#define SATURATED_VALUE   1023
 
#define LAC_PIX_START   1
 
#define GAC_PIX_START   147
 
#define LAC_PIX_SUB   1
 
#define GAC_PIX_SUB   4
 
#define MSEC_PER_DAY   86400000
 
#define GAC_MSEC_INC   (1000.0 * 4.0/6.0)
 
#define LAC_MSEC_INC   (1000.0/6.0)
 
#define GAC_FFM_MSEC_INC   ((GAC_MSEC_INC) * (GAC_PER_FFM))
 
#define LAC_FFM_MSEC_INC   (LAC_MSEC_INC)
 
#define PCT_MSEC_ERR   1
 
#define GAC_MSEC_ERR   1
 
#define LAC_MSEC_ERR   1
 
#define FFM_GAP_MAX   30
 
#define GAC_FFM_GAP_MAX   FFM_GAP_MAX
 
#define LAC_FFM_GAP_MAX   FFM_GAP_MAX
 
#define GAC_MSEC_GAP_MAX   ((GAC_FFM_GAP_MAX) * (GAC_FFM_MSEC_INC))
 
#define LAC_MSEC_GAP_MAX   ((LAC_FFM_GAP_MAX) * (LAC_FFM_MSEC_INC))
 
#define REVERSE_MSEC_GAP   1.0
 
#define ERR_UTIME   REVERSE_MSEC_GAP
 
#define FILL_FRAME_PAT   89
 
#define REAL_FRAME_PAT   0
 
#define GOOD_FFM   0
 
#define FILL_FFM   1
 

Macro Definition Documentation

◆ ALLOCATE_GAC_SIZE

#define ALLOCATE_GAC_SIZE (   x)    ((x * FFM_RAW_LEN + 500) / 1000 - RECORDER_SIZE)

Definition at line 139 of file ffm.h.

◆ ALLOCATE_LAC_SIZE

#define ALLOCATE_LAC_SIZE (   x)    ((x * FFM_RAW_LEN + 500) / 1000)

Definition at line 140 of file ffm.h.

◆ BANDS

#define BANDS   8

Definition at line 149 of file ffm.h.

◆ byte

#define byte   unsigned char

Definition at line 57 of file ffm.h.

◆ DARK_LEN

#define DARK_LEN   16

Definition at line 76 of file ffm.h.

◆ DARK_OFF

#define DARK_OFF   32

Definition at line 79 of file ffm.h.

◆ DARK_RESTORE_OFF

#define DARK_RESTORE_OFF   1

Definition at line 161 of file ffm.h.

◆ ERR_UTIME

#define ERR_UTIME   REVERSE_MSEC_GAP

Definition at line 211 of file ffm.h.

◆ FF_MISSING_FRAMES

#define FF_MISSING_FRAMES   1

Definition at line 145 of file ffm.h.

◆ FFM_GAP_MAX

#define FFM_GAP_MAX   30

Definition at line 203 of file ffm.h.

◆ FFM_LEN

#define FFM_LEN   21504

Definition at line 129 of file ffm.h.

◆ FFM_RAW_LEN

#define FFM_RAW_LEN   13860

Definition at line 131 of file ffm.h.

◆ FFMHDRLEN

#define FFMHDRLEN   512

Definition at line 143 of file ffm.h.

◆ FFMRECLEN

#define FFMRECLEN   FFM_LEN

Definition at line 130 of file ffm.h.

◆ FILL_FFM

#define FILL_FFM   1

Definition at line 223 of file ffm.h.

◆ FILL_FRAME_PAT

#define FILL_FRAME_PAT   89

Definition at line 219 of file ffm.h.

◆ GAC_DARK_LEN

#define GAC_DARK_LEN   DARK_LEN

Definition at line 105 of file ffm.h.

◆ GAC_DARK_OFF

#define GAC_DARK_OFF   DARK_OFF

Definition at line 104 of file ffm.h.

◆ GAC_FFM_GAP_MAX

#define GAC_FFM_GAP_MAX   FFM_GAP_MAX

Definition at line 204 of file ffm.h.

◆ GAC_FFM_MSEC_INC

#define GAC_FFM_MSEC_INC   ((GAC_MSEC_INC) * (GAC_PER_FFM))

Definition at line 184 of file ffm.h.

◆ GAC_IMAGE_LEN

#define GAC_IMAGE_LEN   3968

Definition at line 107 of file ffm.h.

◆ GAC_IMAGE_OFF

#define GAC_IMAGE_OFF   48

Definition at line 106 of file ffm.h.

◆ GAC_LEN

#define GAC_LEN   4032

Definition at line 99 of file ffm.h.

◆ GAC_MSEC_ERR

#define GAC_MSEC_ERR   1

Definition at line 194 of file ffm.h.

◆ GAC_MSEC_GAP_MAX

#define GAC_MSEC_GAP_MAX   ((GAC_FFM_GAP_MAX) * (GAC_FFM_MSEC_INC))

Definition at line 206 of file ffm.h.

◆ GAC_MSEC_INC

#define GAC_MSEC_INC   (1000.0 * 4.0/6.0)

Definition at line 182 of file ffm.h.

◆ GAC_OFF

#define GAC_OFF   790

Definition at line 98 of file ffm.h.

◆ GAC_PER_FFM

#define GAC_PER_FFM   5

Definition at line 147 of file ffm.h.

◆ GAC_PIX_START

#define GAC_PIX_START   147

Definition at line 169 of file ffm.h.

◆ GAC_PIX_SUB

#define GAC_PIX_SUB   4

Definition at line 171 of file ffm.h.

◆ GAC_PIXEL_NUM

#define GAC_PIXEL_NUM   248

Definition at line 162 of file ffm.h.

◆ GAC_SPR_LEN

#define GAC_SPR_LEN   112

Definition at line 123 of file ffm.h.

◆ GAC_SPR_OFF

#define GAC_SPR_OFF   21390

Definition at line 122 of file ffm.h.

◆ GAC_START_LEN

#define GAC_START_LEN   START_LEN

Definition at line 103 of file ffm.h.

◆ GAC_START_OFF

#define GAC_START_OFF   16

Definition at line 102 of file ffm.h.

◆ GAC_STOP_LEN

#define GAC_STOP_LEN   STOP_LEN

Definition at line 109 of file ffm.h.

◆ GAC_STOP_OFF

#define GAC_STOP_OFF   4016

Definition at line 108 of file ffm.h.

◆ GAC_TDI_LEN

#define GAC_TDI_LEN   TDI_LEN

Definition at line 101 of file ffm.h.

◆ GAC_TDI_OFF

#define GAC_TDI_OFF   0

Definition at line 100 of file ffm.h.

◆ GAC_TLM_LEN

#define GAC_TLM_LEN   TLM_LEN

Definition at line 112 of file ffm.h.

◆ GAC_TLM_OFF

#define GAC_TLM_OFF   20950

Definition at line 111 of file ffm.h.

◆ GOOD_FFM

#define GOOD_FFM   0

Definition at line 222 of file ffm.h.

◆ ID_LEN

#define ID_LEN   4

Definition at line 68 of file ffm.h.

◆ ID_OFF

#define ID_OFF   3

Definition at line 67 of file ffm.h.

◆ LAC_DARK_LEN

#define LAC_DARK_LEN   DARK_LEN

Definition at line 90 of file ffm.h.

◆ LAC_DARK_OFF

#define LAC_DARK_OFF   DARK_OFF

Definition at line 89 of file ffm.h.

◆ LAC_FFM_GAP_MAX

#define LAC_FFM_GAP_MAX   FFM_GAP_MAX

Definition at line 205 of file ffm.h.

◆ LAC_FFM_MSEC_INC

#define LAC_FFM_MSEC_INC   (LAC_MSEC_INC)

Definition at line 185 of file ffm.h.

◆ LAC_IMAGE_LEN

#define LAC_IMAGE_LEN   20560

Definition at line 92 of file ffm.h.

◆ LAC_IMAGE_OFF

#define LAC_IMAGE_OFF   48

Definition at line 91 of file ffm.h.

◆ LAC_LEN

#define LAC_LEN   20624

Definition at line 84 of file ffm.h.

◆ LAC_MSEC_ERR

#define LAC_MSEC_ERR   1

Definition at line 197 of file ffm.h.

◆ LAC_MSEC_GAP_MAX

#define LAC_MSEC_GAP_MAX   ((LAC_FFM_GAP_MAX) * (LAC_FFM_MSEC_INC))

Definition at line 207 of file ffm.h.

◆ LAC_MSEC_INC

#define LAC_MSEC_INC   (1000.0/6.0)

Definition at line 183 of file ffm.h.

◆ LAC_OFF

#define LAC_OFF   878

Definition at line 83 of file ffm.h.

◆ LAC_PIX_START

#define LAC_PIX_START   1

Definition at line 168 of file ffm.h.

◆ LAC_PIX_SUB

#define LAC_PIX_SUB   1

Definition at line 170 of file ffm.h.

◆ LAC_PIXEL_NUM

#define LAC_PIXEL_NUM   1285

Definition at line 163 of file ffm.h.

◆ LAC_START_LEN

#define LAC_START_LEN   START_LEN

Definition at line 88 of file ffm.h.

◆ LAC_START_OFF

#define LAC_START_OFF   16

Definition at line 87 of file ffm.h.

◆ LAC_STOP_LEN

#define LAC_STOP_LEN   STOP_LEN

Definition at line 94 of file ffm.h.

◆ LAC_STOP_OFF

#define LAC_STOP_OFF   20608

Definition at line 93 of file ffm.h.

◆ LAC_TDI_LEN

#define LAC_TDI_LEN   TDI_LEN

Definition at line 86 of file ffm.h.

◆ LAC_TDI_OFF

#define LAC_TDI_OFF   0

Definition at line 85 of file ffm.h.

◆ LAC_TLM_LEN

#define LAC_TLM_LEN   TLM_LEN

Definition at line 82 of file ffm.h.

◆ LAC_TLM_OFF

#define LAC_TLM_OFF   790

Definition at line 81 of file ffm.h.

◆ MAX_PIXEL_VALUE

#define MAX_PIXEL_VALUE   1023

Definition at line 164 of file ffm.h.

◆ MIN_PIXEL_VALUE

#define MIN_PIXEL_VALUE   0

Definition at line 165 of file ffm.h.

◆ MSEC_PER_DAY

#define MSEC_PER_DAY   86400000

Definition at line 181 of file ffm.h.

◆ PCT_MSEC_ERR

#define PCT_MSEC_ERR   1

Definition at line 191 of file ffm.h.

◆ PIXEL_BLEN

#define PIXEL_BLEN   BANDS*2

Definition at line 151 of file ffm.h.

◆ PIXEL_WLEN

#define PIXEL_WLEN   BANDS

Definition at line 152 of file ffm.h.

◆ QF1_LEN

#define QF1_LEN   2

Definition at line 61 of file ffm.h.

◆ QF1_OFF

#define QF1_OFF   0

Definition at line 60 of file ffm.h.

◆ QF1_SCALE_FACTOR

#define QF1_SCALE_FACTOR   1/5

Definition at line 62 of file ffm.h.

◆ QF2_LEN

#define QF2_LEN   1

Definition at line 65 of file ffm.h.

◆ QF2_OFF

#define QF2_OFF   2

Definition at line 64 of file ffm.h.

◆ REAL_FRAME_PAT

#define REAL_FRAME_PAT   0

Definition at line 220 of file ffm.h.

◆ RECORDER2_LIMIT

#define RECORDER2_LIMIT   59990

Definition at line 137 of file ffm.h.

◆ RECORDER_SIZE

#define RECORDER_SIZE   65536

Definition at line 136 of file ffm.h.

◆ RECORDER_TLM_SIZE

#define RECORDER_TLM_SIZE   (RECORDER_SIZE - RECORDER2_LIMIT)

Definition at line 138 of file ffm.h.

◆ REVERSE_MSEC_GAP

#define REVERSE_MSEC_GAP   1.0

Definition at line 209 of file ffm.h.

◆ SATURATED_VALUE

#define SATURATED_VALUE   1023

Definition at line 166 of file ffm.h.

◆ SCI_DATA_BOFF

#define SCI_DATA_BOFF   2*PIXEL_BLEN

Definition at line 158 of file ffm.h.

◆ SCI_DATA_WOFF

#define SCI_DATA_WOFF   2*PIXEL_WLEN

Definition at line 159 of file ffm.h.

◆ SOH_LEN

#define SOH_LEN   775

Definition at line 72 of file ffm.h.

◆ SOH_OFF

#define SOH_OFF   15

Definition at line 71 of file ffm.h.

◆ SPR_LEN

#define SPR_LEN   2

Definition at line 127 of file ffm.h.

◆ SPR_OFF

#define SPR_OFF   21502

Definition at line 126 of file ffm.h.

◆ START_LEN

#define START_LEN   16

Definition at line 75 of file ffm.h.

◆ START_SYNC_OFF

#define START_SYNC_OFF   0

Definition at line 160 of file ffm.h.

◆ STOP_LEN

#define STOP_LEN   16

Definition at line 77 of file ffm.h.

◆ TAG_LEN

#define TAG_LEN   8

Definition at line 70 of file ffm.h.

◆ TAG_OFF

#define TAG_OFF   7

Definition at line 69 of file ffm.h.

◆ TDI_LEN

#define TDI_LEN   16

Definition at line 74 of file ffm.h.

◆ TLM_LEN

#define TLM_LEN   88

Definition at line 73 of file ffm.h.