OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
smile.c File Reference
#include "smile.h"
#include <genutils.h>
#include <math.h>
#include <stdlib.h>
Include dependency graph for smile.c:

Go to the source code of this file.

Macros

#define BANDINFO_LINE_MAX   255
 

Functions

void smile_init (int num_bands, int num_detectors, const char *bandinfo_filename, float *detectorWLs, float *detectorE0s)
 
void smile_calc_delta (int *shouldCorrect, int *indexes1, int *indexes2, float *radiances, float *theoretWLs, float *theoretE0s, float fsol, float *detectorWLs, float *detectorE0s, float *delta)
 
void radcor (l1str *l1rec, int32_t ip, int32_t land, int32_t escorrected)
 

Detailed Description

MERIS and OLCI smile correction.

Author
Don Shea

Definition in file smile.c.

Macro Definition Documentation

◆ BANDINFO_LINE_MAX

#define BANDINFO_LINE_MAX   255

Definition at line 16 of file smile.c.

Function Documentation

◆ radcor()

void radcor ( l1str *  l1rec,
int32_t  ip,
int32_t  land,
int32_t  escorrected 
)

Definition at line 195 of file smile.c.

◆ smile_calc_delta()

void smile_calc_delta ( int *  shouldCorrect,
int *  indexes1,
int *  indexes2,
float *  radiances,
float *  theoretWLs,
float *  theoretE0s,
float  fsol,
float *  detectorWLs,
float *  detectorE0s,
float *  delta 
)

Definition at line 146 of file smile.c.

◆ smile_init()

void smile_init ( int  num_bands,
int  num_detectors,
const char *  bandinfo_filename,
float *  detectorWLs,
float *  detectorE0s 
)

Setup the smile correction information.

Parameters
num_bandsnumber of bands for this sensor
num_detectorsnumber of detectors (used in detectorWL, detectorE0)
bandinfo_filenamefull path to the band_info.txt file
detectorWLsdetector central wavelengths (detectorWLs[numDetectors][numBands])
detectorE0sdetector solar flux (detectorE0s[numDetectors][numBands])

Definition at line 48 of file smile.c.