Go to the documentation of this file.
3 void cz_sd_set(l1_data_struc *l1_data, gattr_struc *gattr)
26 int i,
j, nctlpix,
nlin, ctr_ctl_pt;
30 nctlpix = gattr->n_ctl_pt;
31 nlin = gattr->scan_lines;
32 ctr_ctl_pt = (nctlpix - 1) / 2;
37 l1_data->slat[
i] = l1_data->ctl_pt_lat[
i * nctlpix ];
38 l1_data->slon[
i] = l1_data->ctl_pt_lon[
i * nctlpix ];
39 l1_data->clat[
i] = l1_data->ctl_pt_lat[
i * nctlpix + ctr_ctl_pt ];
40 l1_data->clon[
i] = l1_data->ctl_pt_lon[
i * nctlpix + ctr_ctl_pt ];
41 l1_data->elat[
i] = l1_data->ctl_pt_lat[
i * nctlpix + nctlpix - 1 ];
42 l1_data->elon[
i] = l1_data->ctl_pt_lon[
i * nctlpix + nctlpix - 1 ];
44 l1_data->tilt[
i] = gattr->tilt;
45 l1_data->att_ang[
i * 3 ] = gattr->yaw;
46 l1_data->att_ang[
i * 3 + 1 ] = gattr->roll;
47 l1_data->att_ang[
i * 3 + 2 ] = gattr->pitch;
48 for (
j = 0;
j < 6;
j++) {
49 l1_data->slope[
i * 6 +
j ] = gattr->slope[
j];
50 l1_data->intercept[
i * 6 +
j ] = gattr->intercept[
j];
52 l1_data->gain[
i] = (short) gattr->gain;
void cz_sd_set(l1_data_struc *l1_data, gattr_struc *gattr)