OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1b_oci.c File Reference
#include <nc4utils.h>
#include "l1.h"
#include "libnav.h"
#include <productInfo.h>
#include <allocate2d.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <libgen.h>
#include <math.h>
#include <timeutils.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_spline.h>
#include <gsl/gsl_sort.h>
#include <gsl/gsl_statistics.h>
#include <stdbool.h>
#include "l1b_oci.h"
Include dependency graph for l1b_oci.c:

Go to the source code of this file.

Macros

#define MBAND_NUM_DETECTORS   1
 

Functions

int openl1b_oci (filehandle *file)
 
int readl1b_oci (filehandle *file, int32_t line, l1str *l1rec)
 
int closel1b_oci (filehandle *file)
 

Macro Definition Documentation

◆ MBAND_NUM_DETECTORS

#define MBAND_NUM_DETECTORS   1

Definition at line 51 of file l1b_oci.c.

Function Documentation

◆ closel1b_oci()

int closel1b_oci ( filehandle *  file)

Close L1B file, GEO file, and free memory

Parameters
file
Returns

Definition at line 774 of file l1b_oci.c.

◆ openl1b_oci()

int openl1b_oci ( filehandle *  file)

Open the OCI L1B file and perform some one-time tasks (as opposed to tasks that are per scan), including: -Get L1B dimensions num_scans, num_bands, num_pixels (static). Allocate memory for some static arrays based upon these dimensions. -Get L1B group ids e.g. l1bScanLineGrp, l1bObservationGrp and it's 8 "band_%d" var ids (static) -Get L1B "time_coverage_start" and "time_coverage_end" to derive time_interval (static) etc.

Get

Parameters
file
Returns

Definition at line 113 of file l1b_oci.c.

◆ readl1b_oci()

int readl1b_oci ( filehandle *  file,
int32_t  line,
l1str *  l1rec 
)

Read the specified scan line from the specified L1B file. For each scan, get scan_delta_time_ms. Store Lt in l1rec->Lt. Read GEO file.

Parameters
file
line
l1rec
Returns

Definition at line 373 of file l1b_oci.c.