Go to the documentation of this file.
15 int32_t nq =
l1que.nq;
18 for (
i = 0;
i < nq;
i++)
35 printf(
"Queue size limit of %d exceeded: %d\n",
NQMAX, nq);
40 l1que->nq = (nq / 2)*2 + 1;
43 for (
i = 0;
i < nq;
i++) {
46 "-E- %s line %d: Memory allocation failure at L1B scan %d.\n",
47 __FILE__, __LINE__,
i);
64 int32_t nq =
l1que.nq;
66 int32_t fscan =
iscan - nq / 2;
67 int32_t lscan =
iscan + nq / 2;
70 if (iscan < 0 || iscan >
l1file->nscan)
71 return (EXIT_FAILURE);
80 for (
i = fscan;
i <= lscan;
i++) {
84 return (EXIT_FAILURE);
86 return (EXIT_FAILURE);
94 memcpy(&
tmp, &
l1que.r[0], sizeof (l1str));
95 for (iq = 1; iq < nq; iq++)
96 memcpy(&
l1que.r[iq - 1], &
l1que.r[iq], sizeof (l1str));
97 memcpy(&
l1que.r[nq - 1], &
tmp, sizeof (l1str));
104 return (EXIT_FAILURE);
106 return (EXIT_FAILURE);
120 static int32_t
npix = -1;
121 static int32_t nq = -1;
129 crec = &
l1que.r[nq / 2];
144 printf(
"-E- %s: Unable to allocate L1B record queue.\n",
146 return (EXIT_FAILURE);
152 printf(
"-E- %s %d: Error reading %s at scan %d.\n",
154 return (EXIT_FAILURE);
161 if (
input->fctl.nfilt > 0) {
165 for (ip = 0; ip <
npix; ip++)
int32 l1file(int32 sdfid, int32 *nsamp, int32 *nscans, int16 *dtynum)
int readl1(filehandle *l1file, int32_t recnum, l1str *l1rec)
void cpl1rec(l1str *dest, l1str *src)
int32_t alloc_l1q(int32_t nq, filehandle *l1file, l1qstr *l1que)
void l1_mask_set(l1str *l1rec, int32_t ip)
int loadl1q(filehandle *l1file, int32_t iscan, int32_t dscan)
INT32 getl1rec(INT16 sceneFrameNum, swl0scene *scene, swl0ctl *l0ctl, input_sType navinp[], navblk_sType navblk[], tilt_states_sType *tiltblk, swl1rec l1rec[])
void filter(fctlstr *fctl, l1qstr *l1que, l1str *l1rec, int32_t dscan)
void free_l1(l1str *l1rec)
int32_t alloc_l1(filehandle *l1file, l1str *l1rec)
void setflagbits_l1(int level, l1str *l1rec, int32_t ipix)
int loadl1(filehandle *l1file, l1str *l1rec)
void seawater_set(l1str *l1rec)