NASA Logo
Ocean Color Science Software

ocssw V2022
l1_l1c.c File Reference
#include <netcdf.h>
#include "l1_l1c.h"
#include <nc4utils.h>
#include "libnav.h"
#include <stdio.h>
#include <math.h>
Include dependency graph for l1_l1c.c:

Go to the source code of this file.

Functions

int openl1_l1c (filehandle *file)
 
int readl1_l1c (filehandle *file, int32_t line, l1str *l1rec)
 
int closel1_l1c (filehandle *file)
 

Function Documentation

◆ closel1_l1c()

int closel1_l1c ( filehandle *  file)

Close L1B file, GEO file, and free memory

Parameters
file
Returns

Definition at line 232 of file l1_l1c.c.

◆ openl1_l1c()

int openl1_l1c ( 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). locate memory for some static arrays based upon these dimensions. -Get L1B group ids e.g. l1bScanLineGrp, observationGrp and it's 8 "band_%d" var ids (static)

Get

Parameters
file
Returns

Definition at line 44 of file l1_l1c.c.

◆ readl1_l1c()

int readl1_l1c ( 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 172 of file l1_l1c.c.