OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
swim.c File Reference
#include <stdio.h>
#include <math.h>
#include <levmar.h>
#include <netcdf.h>
#include "l12_proto.h"
Include dependency graph for swim.c:

Go to the source code of this file.

Macros

#define NPAR   3
 
#define MAXITR   1500
 

Functions

int swim_ran (int recnum)
 
double getAttr (int varid, char *attrName)
 
int getVarId (char *name)
 
void getDimensionIds (int varid, int *dimIds)
 
size_t getDimensionLength (int dimId)
 
void initBenthicFile (char *fileName)
 
void getDefaultBenthicR ()
 
void getBottomReflectance (float lat, float lon)
 
void swim_func (double *initialParams, double *rrsTotal, int numParams, int numBands, void *dataPtr)
 
void run_swim (l2str *l2rec)
 
void get_swim (l2str *l2rec, l2prodstr *p, float prod[])
 
void iops_swim (l2str *l2rec)
 

Macro Definition Documentation

◆ MAXITR

#define MAXITR   1500

Definition at line 36 of file swim.c.

◆ NPAR

#define NPAR   3

Definition at line 35 of file swim.c.

Function Documentation

◆ get_swim()

void get_swim ( l2str *  l2rec,
l2prodstr *  p,
float  prod[] 
)

Definition at line 741 of file swim.c.

◆ getAttr()

double getAttr ( int  varid,
char *  attrName 
)

Definition at line 117 of file swim.c.

◆ getBottomReflectance()

void getBottomReflectance ( float  lat,
float  lon 
)

Definition at line 358 of file swim.c.

◆ getDefaultBenthicR()

void getDefaultBenthicR ( )

Definition at line 333 of file swim.c.

◆ getDimensionIds()

void getDimensionIds ( int  varid,
int *  dimIds 
)

Definition at line 146 of file swim.c.

◆ getDimensionLength()

size_t getDimensionLength ( int  dimId)

Definition at line 161 of file swim.c.

◆ getVarId()

int getVarId ( char *  name)

Definition at line 132 of file swim.c.

◆ initBenthicFile()

void initBenthicFile ( char *  fileName)

Definition at line 179 of file swim.c.

◆ iops_swim()

void iops_swim ( l2str *  l2rec)

Definition at line 799 of file swim.c.

◆ run_swim()

void run_swim ( l2str *  l2rec)

Definition at line 490 of file swim.c.

◆ swim_func()

void swim_func ( double *  initialParams,
double *  rrsTotal,
int  numParams,
int  numBands,
void *  dataPtr 
)

Definition at line 433 of file swim.c.

◆ swim_ran()

int swim_ran ( int  recnum)

Definition at line 104 of file swim.c.