OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l2_generic.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include "l12_proto.h"
#include "l2_generic.h"
#include <timeutils.h>
#include "l2prod.h"
#include "l1_aci_hdf.h"
#include "flags_sst.h"
#include "flags_iop.h"
#include "mph_flags.h"
#include "version.h"
#include "l1_seabass.h"
#include <scene_meta.h>
#include "l1a_hawkeye.h"
Include dependency graph for l2_generic.c:

Go to the source code of this file.

Macros

#define GEOBOX_INC   20.0
 
#define RFACTOR   100
 

Functions

int32 get_ctl (int32_t ctl_pt_fact, int32 ictl[], int32 jctl[])
 
int MakeVgroups (filehandle *l2file)
 
int openl2 (filehandle *l2file)
 
int writel2 (filehandle *l2file, int32_t recnum, l2str *l2rec, int outfile_number)
 
int closel2 (filehandle *l2file)
 
void update_flag_cnts (int32_t *flag_cnt, int32_t *flags, int32_t nflags, int32_t npix, uint32_t init_mask)
 
void update_flag_cnts16 (int32_t *flag_cnt, int16_t *flags, int32_t nflags, int32_t npix, uint32_t init_mask)
 
void update_qual_cnts (int32_t *flag_cnt, int8_t *flags, int32_t nflags, int32_t npix)
 
int write_flag_pcnts (idDS ds_id, FILE *fpmeta, int32_t *flag_cnt, int32_t nflags, const char *const flag_lname[], int32_t numScans, int32_t numPixels)
 
int write_qual_flag_pcnts (idDS ds_id, FILE *fpmeta, int32_t *flag_cnt, int32_t nflags, const char *const flag_lname[])
 

Macro Definition Documentation

◆ GEOBOX_INC

#define GEOBOX_INC   20.0

Definition at line 66 of file l2_generic.c.

◆ RFACTOR

#define RFACTOR   100

Definition at line 70 of file l2_generic.c.

Function Documentation

◆ closel2()

int closel2 ( filehandle *  l2file)

Definition at line 1499 of file l2_generic.c.

◆ get_ctl()

int32 get_ctl ( int32_t  ctl_pt_fact,
int32  ictl[],
int32  jctl[] 
)

Definition at line 72 of file l2_generic.c.

◆ MakeVgroups()

int MakeVgroups ( filehandle *  l2file)

Definition at line 115 of file l2_generic.c.

◆ openl2()

int openl2 ( filehandle *  l2file)

Definition at line 222 of file l2_generic.c.

◆ update_flag_cnts()

void update_flag_cnts ( int32_t *  flag_cnt,
int32_t *  flags,
int32_t  nflags,
int32_t  npix,
uint32_t  init_mask 
)

Definition at line 1546 of file l2_generic.c.

◆ update_flag_cnts16()

void update_flag_cnts16 ( int32_t *  flag_cnt,
int16_t *  flags,
int32_t  nflags,
int32_t  npix,
uint32_t  init_mask 
)

Definition at line 1561 of file l2_generic.c.

◆ update_qual_cnts()

void update_qual_cnts ( int32_t *  flag_cnt,
int8_t *  flags,
int32_t  nflags,
int32_t  npix 
)

Definition at line 1576 of file l2_generic.c.

◆ write_flag_pcnts()

int write_flag_pcnts ( idDS  ds_id,
FILE *  fpmeta,
int32_t *  flag_cnt,
int32_t  nflags,
const char *const  flag_lname[],
int32_t  numScans,
int32_t  numPixels 
)

Definition at line 1591 of file l2_generic.c.

◆ write_qual_flag_pcnts()

int write_qual_flag_pcnts ( idDS  ds_id,
FILE *  fpmeta,
int32_t *  flag_cnt,
int32_t  nflags,
const char *const  flag_lname[] 
)

Definition at line 1611 of file l2_generic.c.

◆ writel2()

int writel2 ( filehandle *  l2file,
int32_t  recnum,
l2str *  l2rec,
int  outfile_number 
)

Definition at line 988 of file l2_generic.c.