OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1stat_chk.c File Reference
#include "l1stat.h"
#include "l1stat_proto.h"
#include <libgen.h>
Include dependency graph for l1stat_chk.c:

Go to the source code of this file.

Macros

#define SET   1
 

Functions

int main (int argc, char *argv[])
 
int32 read_cntldata (char *cntl_file, char *fsttim, cntl1_str *gn1, cntl1_str *gn2, cntl1_str *zero, cntl2_str *l1hicnt, cntl2_str *l1locnt, float32 *nav_thresh1, float32 *nav_thresh2, float32 *l1tilt_thresh, float32 *pct_noise_thresh, float32 *pct_encrypt_thresh, thr_ctl_def *thr_ctl, int16 *rpt_negtim)
 
int32 l1file (int32 sdfid, int32 *nsamp, int32 *nscans, int16 *dtynum)
 
int32 chk_gn (int32 sdfid, cntl1_str *gn1, cntl1_str *gn2, int16 dtynum, int32 nsamp, int32 nscans)
 
int32 chk_zero (int32 sdfid, cntl1_str *zero_str, int32 nscans, int32 nsamp)
 
int32 chk_count (int32 sdfid, int32 nscans, int32 nsamp, int16 dtynum, cntl2_str *l1hicnt, cntl2_str *l1locnt, int *spike_cnt, float *line_sd)
 
void get_hicnt (int32 nrec, int32 nsamp, int32 nbands, int16 *databuf, cntl2_str *l1hicnt, int32 *hicnt)
 
void get_lowcnt (int32 nrec, int32 nsamp, int32 nbands, int16 *databuf, cntl2_str *l1locnt, int32 *lowcnt)
 
int32 chk_nav (int32 sdfid, int32 nscans, float32 nav_thresh1, float32 nav_thresh2, int32 ntilts, int16 tilt_ranges[20][2], int16 tilt_flags[20], int16 dtynum, int16 rpt_negtim)
 
int32 chk_tilt (int32 sdfid, int16 dtynum, float32 l1tilt_thresh, int32 *ntilts, int16 tilt_ranges[20][2], int16 *tilt_flags)
 
void stat_exit (int status)
 

Variables

char err_msg [1024]
 
int32 stat_status = 0
 
char bad_stat_str [320]
 

Macro Definition Documentation

◆ SET

#define SET   1

Definition at line 5 of file l1stat_chk.c.

Function Documentation

◆ chk_count()

int32 chk_count ( int32  sdfid,
int32  nscans,
int32  nsamp,
int16  dtynum,
cntl2_str *  l1hicnt,
cntl2_str *  l1locnt,
int *  spike_cnt,
float *  line_sd 
)

Definition at line 894 of file l1stat_chk.c.

◆ chk_gn()

int32 chk_gn ( int32  sdfid,
cntl1_str *  gn1,
cntl1_str *  gn2,
int16  dtynum,
int32  nsamp,
int32  nscans 
)

Definition at line 661 of file l1stat_chk.c.

◆ chk_nav()

int32 chk_nav ( int32  sdfid,
int32  nscans,
float32  nav_thresh1,
float32  nav_thresh2,
int32  ntilts,
int16  tilt_ranges[20][2],
int16  tilt_flags[20],
int16  dtynum,
int16  rpt_negtim 
)

Definition at line 1269 of file l1stat_chk.c.

◆ chk_tilt()

int32 chk_tilt ( int32  sdfid,
int16  dtynum,
float32  l1tilt_thresh,
int32 *  ntilts,
int16  tilt_ranges[20][2],
int16 *  tilt_flags 
)

Definition at line 1622 of file l1stat_chk.c.

◆ chk_zero()

int32 chk_zero ( int32  sdfid,
cntl1_str *  zero_str,
int32  nscans,
int32  nsamp 
)

Definition at line 807 of file l1stat_chk.c.

◆ get_hicnt()

void get_hicnt ( int32  nrec,
int32  nsamp,
int32  nbands,
int16 *  databuf,
cntl2_str *  l1hicnt,
int32 *  hicnt 
)

Definition at line 1081 of file l1stat_chk.c.

◆ get_lowcnt()

void get_lowcnt ( int32  nrec,
int32  nsamp,
int32  nbands,
int16 *  databuf,
cntl2_str *  l1locnt,
int32 *  lowcnt 
)

Definition at line 1162 of file l1stat_chk.c.

◆ l1file()

int32 l1file ( int32  sdfid,
int32 *  nsamp,
int32 *  nscans,
int16 *  dtynum 
)

Definition at line 586 of file l1stat_chk.c.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 13 of file l1stat_chk.c.

◆ read_cntldata()

int32 read_cntldata ( char *  cntl_file,
char *  fsttim,
cntl1_str *  gn1,
cntl1_str *  gn2,
cntl1_str *  zero,
cntl2_str *  l1hicnt,
cntl2_str *  l1locnt,
float32 *  nav_thresh1,
float32 *  nav_thresh2,
float32 *  l1tilt_thresh,
float32 *  pct_noise_thresh,
float32 *  pct_encrypt_thresh,
thr_ctl_def *  thr_ctl,
int16 *  rpt_negtim 
)

Definition at line 276 of file l1stat_chk.c.

◆ stat_exit()

void stat_exit ( int  status)

Definition at line 1688 of file l1stat_chk.c.

Variable Documentation

◆ bad_stat_str

char bad_stat_str[320]

Definition at line 11 of file l1stat_chk.c.

◆ err_msg

char err_msg[1024]

Definition at line 7 of file l1stat_chk.c.

◆ stat_status

int32 stat_status = 0

Definition at line 8 of file l1stat_chk.c.