Go to the documentation of this file.
31 l1rec->geom_per_band = (geom_struc *) malloc(
sizeof (geom_struc));
32 l1rec->geom_per_band->senz =
33 (
float *) malloc(
npix *
nbands *
sizeof (
float));
34 l1rec->geom_per_band->sena =
35 (
float *) malloc(
npix *
nbands *
sizeof (
float));
36 l1rec->geom_per_band->csenz =
37 (
float *) malloc(
npix *
nbands *
sizeof (
float));
38 l1rec->geom_per_band->solz =
39 (
float *) malloc(
npix *
nbands *
sizeof (
float));
40 l1rec->geom_per_band->sola =
41 (
float *) malloc(
npix *
nbands *
sizeof (
float));
42 l1rec->geom_per_band->csolz =
43 (
float *) malloc(
npix *
nbands *
sizeof (
float));
44 l1rec->geom_per_band->delphi =
45 (
float *) malloc(
npix *
nbands *
sizeof (
float));
46 l1rec->geom_per_band->scattang =
47 (
float *) malloc(
npix *
nbands *
sizeof (
float));
71 static double radeg =
RADEG;
80 for (ib = 0; ib <
nbands; ib++) {
81 for (ip = 0; ip <
npix; ip++) {
85 geom->delphi[ipb] =
geom->sena[ipb] - 180.0 -
geom->sola[ipb];
86 if (
geom->delphi[ipb] < -180.)
geom->delphi[ipb] += 360.0;
87 else if (
geom->delphi[ipb] > 180.0)
88 geom->delphi[ipb] -= 360.0;
91 geom->csolz[ipb] = cos(
geom->solz[ipb] / radeg);
92 geom->csenz[ipb] = cos(
geom->senz[ipb] / radeg);
95 temp = sqrt((1.0 -
geom->csenz[ipb] *
geom->csenz[ipb])*
96 (1.0 -
geom->csolz[ipb] *
geom->csolz[ipb]))
97 * cos(
geom->delphi[ipb] / radeg);
int init_geom_per_band(l1str *l1rec)
int geom_per_band_deriv(l1str *l1rec)