Go to the documentation of this file.
4 #define PI 3.14159265359
5 #define RADEG 180. / PI
8 l1_data_struc *l1_data)
35 int j, cpix, start_year, start_day;
38 float suna, sunz, gmt;
47 if (tmplon > 180.) tmplon = tmplon - 360.;
60 satang_(&
pi, &radeg, &(gattr->tilt), &(gattr->roll), &(gattr->pitch),
65 lladjust_(&(gattr->tilt), &(gattr->roll), &(gattr->pitch),
78 if (
line == gattr->scan_lines / 2) {
79 cpix = gattr->pix_per_scan / 2;
80 gmt = (
float) l1_data->msec[
line] / (1000. * 3600.);
81 start_year = gattr->start_year;
82 start_day = gattr->start_day;
83 sunangs_(&start_year, &start_day, &gmt,
84 &
xlon[ cpix ], &
ylat[ cpix ], &sunz, &suna);
85 gattr->cntr_sol_zen = sunz;
97 gmt = (
float) l1_data->msec[
line] / (1000. * 3600.);
98 start_year = gattr->start_year;
99 start_day = gattr->start_day;
100 off = (
line * gattr->pix_per_scan);
101 for (
j = 0;
j < gattr->pix_per_scan;
j++) {
102 sunangs_(&start_year, &start_day, &gmt,
104 *(l1_data->sol_zen + off) = sunz;
105 *(l1_data->sol_az + off) = suna;
106 *(l1_data->sen_zen + off) = *(
senz +
j);
107 *(l1_data->sen_az + off) = *(
sena +
j);
108 *(l1_data->all_lat + off) = *(
ylat +
j);
109 *(l1_data->all_lon + off) = *(
xlon +
j);
117 for (
j = 0;
j < gattr->n_ctl_pt;
j++) {
118 *(l1_data->ctl_pt_lat + (
line * gattr->n_ctl_pt) +
j) =
119 ylat[ l1_data->ctl_pt_cols[
j] - 1 ];
120 *(l1_data->ctl_pt_lon + (
line * gattr->n_ctl_pt) +
j) =
121 xlon[ l1_data->ctl_pt_cols[
j] - 1 ];
float fixed_pt_2_floating_pt(int, int)
float ylat[LAC_PIXEL_NUM]
void sunangs_(int *, int *, float *, float *, float *, float *, float *)
void lladjust_(float *, float *, float *, float *, float[], float[], float[])
void satang_(double *, double *, float *, float *, float *, float *, float *, float *, float *, float *)
void czcs_ctl_pt(DATA_REC_TYPE data, gattr_struc *gattr, int line, l1_data_struc *l1_data)
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
float xlon[LAC_PIXEL_NUM]
void lonlat_(float[], float[], float[], float[])