OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_cal_swf.c File Reference
#include <stdlib.h>
#include "hdf4utils.h"
#include <timeutils.h>
#include "call1a_proto.h"
#include "genutils.h"
#include "getcal_proto.h"
#include <hdf.h>
#include <mfhdf.h>
Include dependency graph for get_cal_swf.c:

Go to the source code of this file.

Macros

#define NBAND   8
 
#define NTEMP   256
 
#define NCOEF   6
 
#define NDET   4
 
#define NGAIN   4
 
#define NTDI   256
 
#define NKNEE   5
 
#define K1   0
 
#define K3   1
 
#define K4   2
 
#define MSIDE   3
 
#define DARK   5
 
#define GR   4
 
#define NK   4
 

Functions

float *** alloc3d_float (int m, int n, int o)
 
float **** alloc4d_float (int l, int m, int n, int o)
 
int32_t *** alloc3d_long (int m, int n, int o)
 
void read_caltable (char *cal_path)
 
float apply_time_coef (short functype, float coef[NCOEF], double param)
 
int get_epoch_idx (int param, double jsec)
 
void calc_knees_two (int16 *tdi, float32 counts[8][4][5], float32 rads[8][4][5])
 
int32_t l1b_rad (int syear, int sday, int32_t smsec, int32_t msec, char *dtype, int32_t nsta, int32_t ninc, int32_t npix, float *dark_mean, short *gain, short *tdi, short *scan_temp, float *inst_temp, int mside, short *l1a_data, float *l1b_data, cal_mod_struc *cal_mod)
 

Variables

float cal_counts [NBAND][NDET][NKNEE]
 
float cal_rads [NBAND][NDET][NKNEE]
 

Macro Definition Documentation

◆ DARK

#define DARK   5

Definition at line 92 of file get_cal_swf.c.

◆ GR

#define GR   4

Definition at line 93 of file get_cal_swf.c.

◆ K1

#define K1   0

Definition at line 88 of file get_cal_swf.c.

◆ K3

#define K3   1

Definition at line 89 of file get_cal_swf.c.

◆ K4

#define K4   2

Definition at line 90 of file get_cal_swf.c.

◆ MSIDE

#define MSIDE   3

Definition at line 91 of file get_cal_swf.c.

◆ NBAND

#define NBAND   8

Definition at line 80 of file get_cal_swf.c.

◆ NCOEF

#define NCOEF   6

Definition at line 83 of file get_cal_swf.c.

◆ NDET

#define NDET   4

Definition at line 84 of file get_cal_swf.c.

◆ NGAIN

#define NGAIN   4

Definition at line 85 of file get_cal_swf.c.

◆ NK

#define NK   4

Definition at line 94 of file get_cal_swf.c.

◆ NKNEE

#define NKNEE   5

Definition at line 87 of file get_cal_swf.c.

◆ NTDI

#define NTDI   256

Definition at line 86 of file get_cal_swf.c.

◆ NTEMP

#define NTEMP   256

Definition at line 81 of file get_cal_swf.c.

Function Documentation

◆ alloc3d_float()

float*** alloc3d_float ( int  m,
int  n,
int  o 
)

Definition at line 29 of file get_cal_swf.c.

◆ alloc3d_long()

int32_t*** alloc3d_long ( int  m,
int  n,
int  o 
)

Definition at line 64 of file get_cal_swf.c.

◆ alloc4d_float()

float**** alloc4d_float ( int  l,
int  m,
int  n,
int  o 
)

Definition at line 44 of file get_cal_swf.c.

◆ apply_time_coef()

float apply_time_coef ( short  functype,
float  coef[NCOEF],
double  param 
)

Definition at line 569 of file get_cal_swf.c.

◆ calc_knees_two()

void calc_knees_two ( int16 *  tdi,
float32  counts[8][4][5],
float32  rads[8][4][5] 
)

Definition at line 641 of file get_cal_swf.c.

◆ get_epoch_idx()

int get_epoch_idx ( int  param,
double  jsec 
)

Definition at line 598 of file get_cal_swf.c.

◆ l1b_rad()

int32_t l1b_rad ( int  syear,
int  sday,
int32_t  smsec,
int32_t  msec,
char *  dtype,
int32_t  nsta,
int32_t  ninc,
int32_t  npix,
float *  dark_mean,
short *  gain,
short *  tdi,
short *  scan_temp,
float *  inst_temp,
int  mside,
short *  l1a_data,
float *  l1b_data,
cal_mod_struc *  cal_mod 
)

Definition at line 701 of file get_cal_swf.c.

◆ read_caltable()

void read_caltable ( char *  cal_path)

Definition at line 153 of file get_cal_swf.c.

Variable Documentation

◆ cal_counts

float cal_counts[NBAND][NDET][NKNEE]

Definition at line 134 of file get_cal_swf.c.

◆ cal_rads

float cal_rads[NBAND][NDET][NKNEE]

Definition at line 135 of file get_cal_swf.c.