Go to the documentation of this file.
62 float wl[9] = {412., 443., 490., 510., 555., 670., 765., 865., 965.};
64 float s[6] = {0.583, 0.829, 6.251, 13.533, 1013.592, 9.374};
65 float s5[3] = {5.261, 488.215, 7.475};
66 float s6[3] = {2.592, 491.802, 2.112};
68 float br[8] = {0.9943, 0.9949, 0.9930, 0.9934, 0.9734, 0.9856, 0.9844, 0.9417};
69 float x, ra, r5, r6, r8, r9, br5, br6, br8;
71 ra = (wl[8] - wl[7]) / (wl[7] - wl[6]);
72 for (m = 0; m < xsample; m++) {
76 for (
i = 0;
i < 8;
i++)
r[
i][m] *= br[
i];
77 r9 =
r[7][m] + ra * (
r[7][m] - oxygen *
r[6][m]);
79 br8 =
x / (
r[0][m] *
s[0] +
r[3][m] *
s[1] +
r[4][m] *
s[2]
80 + oxygen *
r[6][m] *
s[3] +
x + r9 *
s[5]);
83 br6 =
x / (
r[2][m] * s6[0] +
x +
r[7][m] * s6[2]);
86 br5 =
x / (
r[1][m] * s5[0] +
x +
r[5][m] * s5[2]);
113 for (
i = 0;
i < 8;
i++) printf(
"%7.5f ", rad[
i][2]);
115 for (
i = 0;
i < 8;
i++)
for (
j = 0;
j < 3;
j++)
r[
i][
j] = rad[
i][
j];
117 for (
i = 0;
i < 8;
i++) printf(
"%7.5f ",
r[
i][2]);
119 for (
i = 0;
i < 8;
i++) ra[
i] =
r[
i][2] / rad[
i][2];
120 for (
i = 0;
i < 8;
i++) printf(
"%7.5f ", ra[
i]);
int out_band_corr(r, float oxygen, int xsample)
int main(int argc, char *argv[])