Go to the documentation of this file.
7 int rhos_to_lt(
int rhos_opt,
float **rhos, in_rec_struc *in_rec,
int idet,
8 sdr_info_struc *sdr_info)
48 for (ipx = 0; ipx <
npix; ipx++) {
57 refl = *(*rhos + ipx + (idet + ibnd * in_rec->ndet_scan) *
npix);
61 lr = in_rec->l2_str.l2_data[loc_lr + ibnd][ipx];
62 t_sen = in_rec->l2_str.l2_data[loc_t_sen + ibnd][ipx];
63 t_sol = in_rec->l2_str.l2_data[loc_t_sol + ibnd][ipx];
64 t_o2 = in_rec->l2_str.l2_data[loc_t_o2 + ibnd][ipx];
65 tg_sen = in_rec->l2_str.l2_data[loc_tg_sen + ibnd][ipx];
66 tg_sol = in_rec->l2_str.l2_data[loc_tg_sol + ibnd][ipx];
69 (refl * in_rec->f0[ibnd] *
mu0 * t_sol * t_sen * t_o2 /
PI +
83 if ((*(in_rec->bnd_lt[ibnd] +
loc) < 0.) ||
84 (*(in_rec->bnd_q[ibnd] +
loc) == 2)) {
94 if (lt[ibnd] < -0.5) {
95 *(in_rec->bnd_lt[ibnd] +
loc) = 0.;
96 *(in_rec->bnd_q[ibnd] +
loc) = 2;
98 *(in_rec->bnd_lt[ibnd] +
loc) = lt[ibnd];
99 *(in_rec->bnd_q[ibnd] +
loc) = 0;
int rhos_to_lt(int rhos_opt, float **rhos, in_rec_struc *in_rec, int idet, sdr_info_struc *sdr_info)