OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
csalbr.c
Go to the documentation of this file.
1 #include <math.h>
2 
3 double fintexp3(float xtau);
4 double fintexp1(float xtau);
5 
6 float csalbr(float xtau) {
7  return (3 * xtau - fintexp3(xtau)*(4 + 2 * xtau) + 2 * expf(-xtau)) / (4 + 3 * xtau);
8 }
9 
10 double fintexp3(float xtau) {
11  return (expf(-xtau)*(1. - xtau) + xtau * xtau * fintexp1(xtau)) / 2.;
12 }
13 
14 double fintexp1(float xtau) {
15  double xx, xftau;
16  int i;
17  const float a[6] = {-.57721566, 0.99999193, -0.24991055,
18  0.05519968, -0.00976004, 0.00107857};
19  xx = a[0];
20  xftau = 1.;
21  for (i = 1; i < 6; i++) {
22  xftau *= xtau;
23  xx += a[i] * xftau;
24  }
25  return xx - logf(xtau);
26 }
float csalbr(float xtau)
Definition: csalbr.c:6
double fintexp1(float xtau)
Definition: csalbr.c:14
int i
Definition: decode_rs.h:71
PGE01 indicating that PGE02 PGE01 V6 for and PGE01 V2 for MOD03 were used to produce the granule By convention adopted in all MODIS Terra PGE02 code versions are The fourth digit of the PGE02 version denotes the LUT version used to produce the granule The source of the metadata environment variable ProcessingCenter was changed from a QA LUT value to the Process Configuration A sign used in error in the second order term was changed to a
Definition: HISTORY.txt:424
double fintexp3(float xtau)
Definition: csalbr.c:10