OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
par_utils.h File Reference
#include <stdio.h>
#include <math.h>
#include "l2_struc.h"
#include "filehandle.h"
#include "l12_proto.h"
Include dependency graph for par_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NMODEL   12
 
#define NPHASE   75
 

Functions

float calc_par (l2str *l2rec, int ip, int nbands, float *Lt, float taua, float angstrom, float *wl, float *fo, float *ko3, float *taumolbar)
 
void GetAerPhase (l2str *l2rec, int ip, int32_t nbands, float angstrom, float *phasea, float *omegaa, float *modelAngstrom)
 
void read_aerosol_par (l2str *l2rec, int32_t nbands, float *tablewavelengths, float *tablephaseangles, float *tablealphas, float *tableomegas, float *tableaerphasefunc)
 
void * allocateMemoryPar (size_t numBytes, const char *name)
 
float EstimateDobson (int32_t year, int32_t month, int32_t day, float lat)
 
float EstimateWatVap (int32_t year, int32_t month, int32_t day, float lat)
 
float varsol (int32_t jday)
 
void triseset (int32_t jday, float xlon, float xlat, float *trise, float *tset)
 
int Greg2Jul (int32_t year, int32_t month, int32_t day)
 
float get_solz (int jday, float time, float lon, float lat)
 
float interp_as_taulow (float csz, float tau)
 
float interp_as_tauhigh (float csz)
 

Macro Definition Documentation

◆ NMODEL

#define NMODEL   12

Definition at line 13 of file par_utils.h.

◆ NPHASE

#define NPHASE   75

Definition at line 14 of file par_utils.h.

Function Documentation

◆ allocateMemoryPar()

void* allocateMemoryPar ( size_t  numBytes,
const char *  name 
)

◆ calc_par()

float calc_par ( l2str *  l2rec,
int  ip,
int  nbands,
float *  Lt,
float  taua,
float  angstrom,
float *  wl,
float *  fo,
float *  ko3,
float *  taumolbar 
)

Definition at line 87 of file calc_par.c.

◆ EstimateDobson()

float EstimateDobson ( int32_t  year,
int32_t  month,
int32_t  day,
float  lat 
)

Definition at line 250 of file par_utils.c.

◆ EstimateWatVap()

float EstimateWatVap ( int32_t  year,
int32_t  month,
int32_t  day,
float  lat 
)

Definition at line 381 of file par_utils.c.

◆ get_solz()

float get_solz ( int  jday,
float  time,
float  lon,
float  lat 
)

◆ GetAerPhase()

void GetAerPhase ( l2str *  l2rec,
int  ip,
int32_t  nbands,
float  angstrom,
float *  phasea,
float *  omegaa,
float *  modelAngstrom 
)

Definition at line 51 of file par_utils.c.

◆ Greg2Jul()

int Greg2Jul ( int32_t  year,
int32_t  month,
int32_t  day 
)

◆ interp_as_tauhigh()

float interp_as_tauhigh ( float  csz)

Definition at line 769 of file par_utils.c.

◆ interp_as_taulow()

float interp_as_taulow ( float  csz,
float  tau 
)

Definition at line 661 of file par_utils.c.

◆ read_aerosol_par()

void read_aerosol_par ( l2str *  l2rec,
int32_t  nbands,
float *  tablewavelengths,
float *  tablephaseangles,
float *  tablealphas,
float *  tableomegas,
float *  tableaerphasefunc 
)

Definition at line 174 of file par_utils.c.

◆ triseset()

void triseset ( int32_t  jday,
float  xlon,
float  xlat,
float *  trise,
float *  tset 
)

Definition at line 529 of file par_utils.c.

◆ varsol()

float varsol ( int32_t  jday)

Definition at line 514 of file par_utils.c.