NASA Logo
Ocean Color Science Software

ocssw V2022
get_ndwi.c File Reference
#include "l12_proto.h"
#include "vegetation_indices.h"
Include dependency graph for get_ndwi.c:

Go to the source code of this file.

Functions

get_ndwi

Calculate a normalized difference water index [Gao], B.C., NDWI—A normalized difference water index for remote sensing of vegetation liquid water from space, Remote Sensing of Environment 58(3), 257-266, doi.org/10.1016/S0034-4257(96)00067-3 (1996)

Parameters
l1recA level one file
ndwiAn array into which the result of calculation will be stored
void calculate_ndwi (l1str *l1rec, float ndwi[])
 
void get_ndwi (l1str *l1rec, float prod[])
 

Function Documentation

◆ calculate_ndwi()

void calculate_ndwi ( l1str *  l1rec,
float  ndwi[] 
)

Definition at line 30 of file get_ndwi.c.

◆ get_ndwi()

void get_ndwi ( l1str *  l1rec,
float  prod[] 
)

Main entry point for getting NDWI.

Parameters
l1recA level 1 record
prodA caller-provided array that will contain the result of calculation

Definition at line 79 of file get_ndwi.c.