NASA Logo
Ocean Color Science Software

ocssw V2022
ancgen.cpp File Reference
#include <stdio.h>
#include <math.h>
#include <libgen.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <netcdf>
#include <cgal_interp.h>
#include <allocate2d.h>
#include <allocate3d.h>
#include <timeutils.h>
#include <clo.h>
#include <genutils.h>
#include <gsl/gsl_matrix_float.h>
#include <gsl/gsl_blas.h>
Include dependency graph for ancgen.cpp:

Go to the source code of this file.

Macros

#define NCACHE   20
 

Functions

int accum (uint32_t totlines, uint32_t npixels, uint32_t nalong, uint32_t nacross, short *brow, short *bcol, float **cldprod, int8_t **cld_phase, float **binval_ic, short **nobs_ic, float **binval_wc, short **nobs_wc)
 
int accum_frac (uint32_t totlines, uint32_t npixels, uint32_t nalong, uint32_t nacross, short *brow, short *bcol, float **cldprod, int8_t **cld_phase, float **binval_ic, short **nobs_ic, float **binval_wc, short **nobs_wc)
 
int accum_wm (uint32_t nwm, short *brow, short *bcol, float *wlval, float **binval, short **nobs)
 
int lonlat2rowcol (uint32_t nalong, uint32_t nacross, uint32_t ncm, float gridres, float *lonL1C, float *latL1C, float *lonCM, float *latCM, short *brow, short *bcol)
 
int copyVarAtts (NcVar *varin, NcVar *varout, string override[], string overridetype[])
 
int copyVarAtts (NcVar *varin, NcVar *varout)
 
template<typename T >
int readCLD (NcGroup ncGrp[], const char *fldname, T *array, uint32_t npixels, uint32_t nlines[])
 
int expandEnvVar (std::string *sValue)
 
int main (int argc, char *argv[])
 

Variables

const double PI = 3.14159265358979323846
 
const double RADEG = 180 / PI
 

Macro Definition Documentation

◆ NCACHE

#define NCACHE   20

Definition at line 20 of file ancgen.cpp.

Function Documentation

◆ accum()

int accum ( uint32_t  totlines,
uint32_t  npixels,
uint32_t  nalong,
uint32_t  nacross,
short *  brow,
short *  bcol,
float **  cldprod,
int8_t **  cld_phase,
float **  binval_ic,
short **  nobs_ic,
float **  binval_wc,
short **  nobs_wc 
)

Definition at line 38 of file ancgen.cpp.

◆ accum_frac()

int accum_frac ( uint32_t  totlines,
uint32_t  npixels,
uint32_t  nalong,
uint32_t  nacross,
short *  brow,
short *  bcol,
float **  cldprod,
int8_t **  cld_phase,
float **  binval_ic,
short **  nobs_ic,
float **  binval_wc,
short **  nobs_wc 
)

Definition at line 85 of file ancgen.cpp.

◆ accum_wm()

int accum_wm ( uint32_t  nwm,
short *  brow,
short *  bcol,
float *  wlval,
float **  binval,
short **  nobs 
)

Definition at line 133 of file ancgen.cpp.

◆ copyVarAtts() [1/2]

int copyVarAtts ( NcVar *  varin,
NcVar *  varout 
)

Definition at line 69 of file copyvaratts.cpp.

◆ copyVarAtts() [2/2]

int copyVarAtts ( NcVar *  varin,
NcVar *  varout,
string  override[],
string  overridetype[] 
)

Definition at line 10 of file copyvaratts.cpp.

◆ expandEnvVar()

int expandEnvVar ( std::string sValue)
inline

Definition at line 222 of file ancgen.cpp.

◆ lonlat2rowcol()

int lonlat2rowcol ( uint32_t  nalong,
uint32_t  nacross,
uint32_t  ncm,
float  gridres,
float *  lonL1C,
float *  latL1C,
float *  lonCM,
float *  latCM,
short *  brow,
short *  bcol 
)

Definition at line 1846 of file ancgen.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 238 of file ancgen.cpp.

◆ readCLD()

int readCLD ( NcGroup  ncGrp[],
const char *  fldname,
T *  array,
uint32_t  npixels,
uint32_t  nlines[] 
)

Definition at line 169 of file ancgen.cpp.

Variable Documentation

◆ PI

const double PI = 3.14159265358979323846

Definition at line 21 of file ancgen.cpp.

◆ RADEG

const double RADEG = 180 / PI

Definition at line 22 of file ancgen.cpp.