NASA Logo
Ocean Color Science Software

ocssw V2022
l1_octs_netcdf.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <hdf4utils.h>
#include "l1.h"
#include "filehdr_struc.h"
#include "l1_octs.h"
#include "l1_octs_netcdf.h"
#include <netcdf>
#include <iostream>
#include <hdf.h>
#include <mfhdf.h>
Include dependency graph for l1_octs_netcdf.cpp:

Go to the source code of this file.

Macros

#define RADIUS   6378.137 /* Earth radius in km */
 
#define FL   1.0/298.257 /* Earth flatening factor */
 
#define NR   560 /* # rows */
 
#define NC   30 /* max # columns */
 
#define MAXOCLIN   6700 /* max # lines */
 
#define MAXOCPIX   2218 /* max # pixels */
 
#define MAXOCARR   10000
 
#define NOCBANDS   8
 

Functions

void navigation_netcdf (NcFile &dataFile)
 
int32_t openl1_octs_netcdf (filehandle *l1file)
 
int32_t readl1_octs_netcdf (filehandle *l1file, int32_t recnum, l1str *l1rec)
 
int32_t closel1_octs_netcdf (filehandle *l1file)
 

Macro Definition Documentation

◆ FL

#define FL   1.0/298.257 /* Earth flatening factor */

Definition at line 21 of file l1_octs_netcdf.cpp.

◆ MAXOCARR

#define MAXOCARR   10000

Definition at line 27 of file l1_octs_netcdf.cpp.

◆ MAXOCLIN

#define MAXOCLIN   6700 /* max # lines */

Definition at line 25 of file l1_octs_netcdf.cpp.

◆ MAXOCPIX

#define MAXOCPIX   2218 /* max # pixels */

Definition at line 26 of file l1_octs_netcdf.cpp.

◆ NC

#define NC   30 /* max # columns */

Definition at line 23 of file l1_octs_netcdf.cpp.

◆ NOCBANDS

#define NOCBANDS   8

Definition at line 28 of file l1_octs_netcdf.cpp.

◆ NR

#define NR   560 /* # rows */

Definition at line 22 of file l1_octs_netcdf.cpp.

◆ RADIUS

#define RADIUS   6378.137 /* Earth radius in km */

Definition at line 20 of file l1_octs_netcdf.cpp.

Function Documentation

◆ closel1_octs_netcdf()

int32_t closel1_octs_netcdf ( filehandle *  l1file)

Definition at line 836 of file l1_octs_netcdf.cpp.

◆ navigation_netcdf()

void navigation_netcdf ( NcFile &  dataFile)

Definition at line 175 of file l1_octs_netcdf.cpp.

◆ openl1_octs_netcdf()

int32_t openl1_octs_netcdf ( filehandle *  l1file)

Definition at line 503 of file l1_octs_netcdf.cpp.

◆ readl1_octs_netcdf()

int32_t readl1_octs_netcdf ( filehandle *  l1file,
int32_t  recnum,
l1str *  l1rec 
)

Definition at line 669 of file l1_octs_netcdf.cpp.