OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Emissive_Cal.c File Reference
#include "Preprocess.h"
#include "Emissive_Cal.h"
#include "HDF_Lib.h"
#include "PGS_Error_Codes.h"
#include "FNames.h"
#include <math.h>
Include dependency graph for Emissive_Cal.c:

Go to the source code of this file.

Macros

#define FLOAT_TO_PIXEL(L, L_max, L_min, scale, offset, Scale_Integer)
 

Functions

PGSt_SMF_status Emissive_Cal (int16 S, int16 MS, L1B_granule_t *L1B_Gran, L1A_Scan_t *L1A_Scan, L1B_Scan_t *L1B_Scan, Preprocess_Emiss_t *PP_emiss, emiss_tables_t *emiss_tables, QA_tables_t *QA_tables, QA_Data_t *QA, L1B_Scan_Metadata_t *L1B_Scan_Meta)
 

Macro Definition Documentation

◆ FLOAT_TO_PIXEL

#define FLOAT_TO_PIXEL (   L,
  L_max,
  L_min,
  scale,
  offset,
  Scale_Integer 
)
Value:
if ((L) <= (L_min)) Scale_Integer = DN_MIN; \
else if ((L) >= (L_max)) Scale_Integer = DN15_SAT; \
else Scale_Integer = (uint16)( ( (L)/(scale) + (offset) ) + 0.5 );

Definition at line 8 of file Emissive_Cal.c.

Function Documentation

◆ Emissive_Cal()

PGSt_SMF_status Emissive_Cal ( int16  S,
int16  MS,
L1B_granule_t L1B_Gran,
L1A_Scan_t L1A_Scan,
L1B_Scan_t L1B_Scan,
Preprocess_Emiss_t PP_emiss,
emiss_tables_t emiss_tables,
QA_tables_t QA_tables,
QA_Data_t QA,
L1B_Scan_Metadata_t L1B_Scan_Meta 
)

Definition at line 19 of file Emissive_Cal.c.

#define L(lambda, T)
Definition: PreprocessP.h:185
#define DN15_SAT
Definition: Granule.h:1103
#define DN_MIN
Definition: Granule.h:1104
l2prod offset