OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
niwa_iop.c File Reference
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "l12_proto.h"
#include "l2prod.h"
#include "niwa_iop.h"
Include dependency graph for niwa_iop.c:

Go to the source code of this file.

Classes

struct  abs_res_
 

Macros

#define radians(degrees)   ((degrees) * M_PI / 180.0)
 
#define degrees(radians)   ((radians) * 180.0 / M_PI)
 
#define LBANDS   8 /* 8 bands in LUT */
 
#define VBANDS   6 /* results returned for 6 visible bands, regardless which sensor */
 
#define SEAWIFS_NBANDS   8
 
#define MODIS_NBANDS   9
 
#define TH_NS   10
 
#define DPHI_NS   19
 
#define AP_NS   16
 
#define BP_NS   16
 
#define ABSIND_NS   3891200 /* 8 bands (10.10.19.16.16) from 172800 */
 
#define IOPF_NIWA_BADGEOM   0x0020 /* was SPARE2 */
 
#define IOPmodel   1 /* uses only 490 and 510 bands */
 
#define VERB   0
 

Functions

void niwa_iop (l2str *l2rec, float niwa_a[], float niwa_bb[], int16 niwa_iopf[])
 

Variables

const float NO_DATA = BAD_FLT
 

Macro Definition Documentation

◆ ABSIND_NS

#define ABSIND_NS   3891200 /* 8 bands (10.10.19.16.16) from 172800 */

Definition at line 43 of file niwa_iop.c.

◆ AP_NS

#define AP_NS   16

Definition at line 41 of file niwa_iop.c.

◆ BP_NS

#define BP_NS   16

Definition at line 42 of file niwa_iop.c.

◆ degrees

#define degrees (   radians)    ((radians) * 180.0 / M_PI)

Definition at line 30 of file niwa_iop.c.

◆ DPHI_NS

#define DPHI_NS   19

Definition at line 40 of file niwa_iop.c.

◆ IOPF_NIWA_BADGEOM

#define IOPF_NIWA_BADGEOM   0x0020 /* was SPARE2 */

Definition at line 45 of file niwa_iop.c.

◆ IOPmodel

#define IOPmodel   1 /* uses only 490 and 510 bands */

Definition at line 47 of file niwa_iop.c.

◆ LBANDS

#define LBANDS   8 /* 8 bands in LUT */

Definition at line 33 of file niwa_iop.c.

◆ MODIS_NBANDS

#define MODIS_NBANDS   9

Definition at line 36 of file niwa_iop.c.

◆ radians

#define radians (   degrees)    ((degrees) * M_PI / 180.0)

Definition at line 29 of file niwa_iop.c.

◆ SEAWIFS_NBANDS

#define SEAWIFS_NBANDS   8

Definition at line 35 of file niwa_iop.c.

◆ TH_NS

#define TH_NS   10

Definition at line 39 of file niwa_iop.c.

◆ VBANDS

#define VBANDS   6 /* results returned for 6 visible bands, regardless which sensor */

Definition at line 34 of file niwa_iop.c.

◆ VERB

#define VERB   0

Definition at line 50 of file niwa_iop.c.

Function Documentation

◆ niwa_iop()

void niwa_iop ( l2str *  l2rec,
float  niwa_a[],
float  niwa_bb[],
int16  niwa_iopf[] 
)

Definition at line 861 of file niwa_iop.c.

Variable Documentation

◆ NO_DATA

const float NO_DATA = BAD_FLT

Definition at line 55 of file niwa_iop.c.