OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_atrem_corl1v3.c File Reference
#include "atrem_corl1v3.h"
#include <sensorInfo.h>
#include <timeutils.h>
#include <math.h>
Include dependency graph for get_atrem_corl1v3.c:

Go to the source code of this file.

Macros

#define BUFSZ   100
 
#define MINDEGCHANGE   55
 

Functions

int get_atrem_cor (l1str *l1rec, int32_t ip, float *rhot, float *tg_tot, float *tg_sol, float *tg_sen)
 
float get_atrem (float *tg_tot, float *rhot, paramstr *P)
 
int32_t hunt (float *xx, int32_t n, double x, int32_t jlo)
 
int init_tpvmr (int model)
 
void get_tpvmr (size_t layers, size_t models, int sds_id, char filename[FILENAME_MAX], char *varname, float *var_a)
 
int init_tpvmr_nc (int model)
 
int getModelNum (float lat, int32_t day)
 
int init_atrem (int32_t sensorID, paramstr *P, l1str *l1rec, int32_t nbands)
 
int get_angle_limits (float **anglelimit, float **insenz, float **insolz, int *n_senz, int *n_solz)
 
float get_current_angle_limit (float insenz, float insolz, int *ii, int *jj, float **anglelimit, float *senz, float *solz, int n_senz, int n_solz)
 
int32_t findMatch (float *list, int32_t nbands, float elem)
 
void channelRatio ()
 
void kdistgasabs (float *kcdf, float *abscf, float *waveno, float *wavobs, int32_t nphi, int32_t n_layers, int32_t nbands)
 
void model_adjust ()
 
void locate_pos_ (float *xx, int32_t *n1, float *x1, int32_t *jj)
 
void geometry ()
 
void get_abscf_data (int levels, int bands, int sds_id, char filename[FILENAME_MAX], float *abscf, char *varname)
 
void apply_gas_trans (int32_t k_surf, int levels, int bands, float *abscf, float *dp, float *vmrm, float *tran_hi)
 
void init_spectral_calculations ()
 
void tran_table ()
 
void tran_smooth (float *tran_hi)
 
void tran_smooth_others ()
 

Macro Definition Documentation

◆ BUFSZ

#define BUFSZ   100

Definition at line 143 of file get_atrem_corl1v3.c.

◆ MINDEGCHANGE

#define MINDEGCHANGE   55

Definition at line 144 of file get_atrem_corl1v3.c.

Function Documentation

◆ apply_gas_trans()

void apply_gas_trans ( int32_t  k_surf,
int  levels,
int  bands,
float *  abscf,
float *  dp,
float *  vmrm,
float *  tran_hi 
)

Definition at line 2325 of file get_atrem_corl1v3.c.

◆ channelRatio()

void channelRatio ( )

Definition at line 1650 of file get_atrem_corl1v3.c.

◆ findMatch()

int32_t findMatch ( float *  list,
int32_t  nbands,
float  elem 
)

Definition at line 1605 of file get_atrem_corl1v3.c.

◆ geometry()

void geometry ( )

Definition at line 2147 of file get_atrem_corl1v3.c.

◆ get_abscf_data()

void get_abscf_data ( int  levels,
int  bands,
int  sds_id,
char  filename[FILENAME_MAX],
float *  abscf,
char *  varname 
)

Definition at line 2296 of file get_atrem_corl1v3.c.

◆ get_angle_limits()

int get_angle_limits ( float **  anglelimit,
float **  insenz,
float **  insolz,
int *  n_senz,
int *  n_solz 
)

Definition at line 1384 of file get_atrem_corl1v3.c.

◆ get_atrem()

float get_atrem ( float *  tg_tot,
float *  rhot,
paramstr *  P 
)

Definition at line 346 of file get_atrem_corl1v3.c.

◆ get_atrem_cor()

int get_atrem_cor ( l1str *  l1rec,
int32_t  ip,
float *  rhot,
float *  tg_tot,
float *  tg_sol,
float *  tg_sen 
)

Definition at line 147 of file get_atrem_corl1v3.c.

◆ get_current_angle_limit()

float get_current_angle_limit ( float  insenz,
float  insolz,
int *  ii,
int *  jj,
float **  anglelimit,
float *  senz,
float *  solz,
int  n_senz,
int  n_solz 
)

Definition at line 1553 of file get_atrem_corl1v3.c.

◆ get_tpvmr()

void get_tpvmr ( size_t  layers,
size_t  models,
int  sds_id,
char  filename[FILENAME_MAX],
char *  varname,
float *  var_a 
)

Definition at line 707 of file get_atrem_corl1v3.c.

◆ getModelNum()

int getModelNum ( float  lat,
int32_t  day 
)

Definition at line 837 of file get_atrem_corl1v3.c.

◆ hunt()

int32_t hunt ( float *  xx,
int32_t  n,
double  x,
int32_t  jlo 
)

Definition at line 619 of file get_atrem_corl1v3.c.

◆ init_atrem()

int init_atrem ( int32_t  sensorID,
paramstr *  P,
l1str *  l1rec,
int32_t  nbands 
)

Definition at line 877 of file get_atrem_corl1v3.c.

◆ init_spectral_calculations()

void init_spectral_calculations ( )

Definition at line 2436 of file get_atrem_corl1v3.c.

◆ init_tpvmr()

int init_tpvmr ( int  model)

Definition at line 672 of file get_atrem_corl1v3.c.

◆ init_tpvmr_nc()

int init_tpvmr_nc ( int  model)

Definition at line 734 of file get_atrem_corl1v3.c.

◆ kdistgasabs()

void kdistgasabs ( float *  kcdf,
float *  abscf,
float *  waveno,
float *  wavobs,
int32_t  nphi,
int32_t  n_layers,
int32_t  nbands 
)

Definition at line 1706 of file get_atrem_corl1v3.c.

◆ locate_pos_()

void locate_pos_ ( float *  xx,
int32_t *  n1,
float *  x1,
int32_t *  jj 
)

Definition at line 2091 of file get_atrem_corl1v3.c.

◆ model_adjust()

void model_adjust ( )

Definition at line 1931 of file get_atrem_corl1v3.c.

◆ tran_smooth()

void tran_smooth ( float *  tran_hi)

Definition at line 3375 of file get_atrem_corl1v3.c.

◆ tran_smooth_others()

void tran_smooth_others ( )

Definition at line 3829 of file get_atrem_corl1v3.c.

◆ tran_table()

void tran_table ( )

Definition at line 3019 of file get_atrem_corl1v3.c.