OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
seawater.c File Reference
#include "l12_proto.h"
#include <gsl/gsl_fit.h>
Include dependency graph for seawater.c:

Go to the source code of this file.

Functions

float seawater_nsw (float wave, float sst, float sss, float *dnswds)
 
float seawater_betat (float sst, float sss)
 
float seawater_density (float sst, float sss)
 
float seawater_dlnaswds (float sst, float sss)
 
float seawater_dnswdrho (float n_sw)
 
float seawater_bb (float wave, float sst, float sss, double delta)
 
void get_bbws (l2str *l2rec, l2prodstr *p, float prod[])
 

Function Documentation

◆ get_bbws()

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

function to return spectral slope parameter for bbw

Parameters
l2recl2rec structure
pproduct sturcture
prodoutput bbw slope parameter

The slope is computed on the log transformed data for the visible wavelengths only. This works, because bbw can be approximated by a power function.

Definition at line 254 of file seawater.c.

◆ seawater_bb()

float seawater_bb ( float  wave,
float  sst,
float  sss,
double  delta 
)

Definition at line 176 of file seawater.c.

◆ seawater_betat()

float seawater_betat ( float  sst,
float  sss 
)

Definition at line 51 of file seawater.c.

◆ seawater_density()

float seawater_density ( float  sst,
float  sss 
)

Definition at line 86 of file seawater.c.

◆ seawater_dlnaswds()

float seawater_dlnaswds ( float  sst,
float  sss 
)

Definition at line 129 of file seawater.c.

◆ seawater_dnswdrho()

float seawater_dnswdrho ( float  n_sw)

Definition at line 156 of file seawater.c.

◆ seawater_nsw()

float seawater_nsw ( float  wave,
float  sst,
float  sss,
float *  dnswds 
)

Definition at line 8 of file seawater.c.