36 unsigned char *tmp_ptr;
46 1, (
void *) &cz_attr->scan_lines) != 0)
return -1;
47 nscan = cz_attr->scan_lines;
50 if (
hdfio_rd_gattr(hdfid,
"Parameter Presence Code", DFNT_UINT8, 1,
51 (
void *) &cz_attr->parm_presence) != 0)
return -1;
55 1, (
void *) &cz_attr->n_ctl_pt) != 0)
return -1;
56 n_ctl_pt = cz_attr->n_ctl_pt;
60 1, (
void *) &cz_attr->start_day) != 0)
return -1;
69 if (
hdfio_rd_sd(hdfid,
"msec", (
void *) cz_dat->msec) != 0)
return -1;
70 if (
hdfio_rd_sd(hdfid,
"cal_sum", (
void *) cz_dat->cal_sum) != 0)
72 if (
hdfio_rd_sd(hdfid,
"cal_scan", (
void *) cz_dat->cal_scan) != 0)
82 40, (
void *) cz_attr->prod_name) != 0)
return -1;
85 40, (
void *) cz_attr->f_title) != 0)
return -1;
88 256, (
void *) cz_attr->datacenter) != 0)
return -1;
91 256, (
void *) cz_attr->stn_name) != 0)
return -1;
94 1, (
void *) &cz_attr->stn_lat) != 0)
return -1;
97 1, (
void *) &cz_attr->stn_lon) != 0)
return -1;
100 40, (
void *) cz_attr->mission) != 0)
return -1;
103 256, (
void *) cz_attr->mission_char) != 0)
return -1;
106 40, (
void *) cz_attr->sensor) != 0)
return -1;
109 256, (
void *) cz_attr->sensor_char) != 0)
return -1;
112 16, (
void *) cz_attr->datatype) != 0)
return -1;
115 40, (
void *) cz_attr->repl_flg) != 0)
return -1;
118 128, (
void *) cz_attr->soft_id) != 0)
return -1;
121 17, (
void *) cz_attr->process_time) != 0)
return -1;
124 1280, (
void *) cz_attr->input_files) != 0)
return -1;
127 1024, (
void *) cz_attr->proc_ctl) != 0)
return -1;
130 17, (
void *) cz_attr->start_time) != 0)
return -1;
133 17, (
void *) cz_attr->end_time) != 0)
return -1;
136 17, (
void *) cz_attr->center_time) != 0)
return -1;
139 1, (
void *) &cz_attr->start_year) != 0)
return -1;
142 1, (
void *) &cz_attr->start_msec) != 0)
return -1;
145 1, (
void *) &cz_attr->end_year) != 0)
return -1;
148 1, (
void *) &cz_attr->end_day) != 0)
return -1;
151 1, (
void *) &cz_attr->end_msec) != 0)
return -1;
154 11, (
void *) cz_attr->start_node) != 0)
return -1;
157 11, (
void *) cz_attr->end_node) != 0)
return -1;
160 1, (
void *) &cz_attr->orbit) != 0)
return -1;
163 1, (
void *) &cz_attr->pix_per_scan) != 0)
return -1;
166 1, (
void *) &cz_attr->scan_lines) != 0)
return -1;
169 1, (
void *) &cz_attr->n_ctl_lin) != 0)
return -1;
172 1, (
void *) &cz_attr->lac_pixl_start_no) != 0)
return -1;
175 1, (
void *) &cz_attr->lac_pixl_subsample) != 0)
return -1;
178 1, (
void *) &cz_attr->cntr_scn_line) != 0)
return -1;
181 1, (
void *) &cz_attr->filled_lines) != 0)
return -1;
184 1, (
void *) &cz_attr->tilt) != 0)
return -1;
187 1, (
void *) &cz_attr->gain) != 0)
return -1;
190 1, (
void *) &cz_attr->thresh) != 0)
return -1;
193 6, (
void *) cz_attr->
slope) != 0)
return -1;
196 6, (
void *) cz_attr->
intercept) != 0)
return -1;
199 1, (
void *) &cz_attr->roll) != 0)
return -1;
202 1, (
void *) &cz_attr->pitch) != 0)
return -1;
205 1, (
void *) &cz_attr->yaw) != 0)
return -1;
208 1, (
void *) &cz_attr->ilt_flags) != 0)
return -1;
211 1, (
void *) &cz_attr->n_miss_scans) != 0)
return -1;
213 if (
hdfio_rd_gattr(hdfid,
"Number of Scans with Missing Channels",
215 6, (
void *) cz_attr->n_scan_mis_chan) != 0)
return -1;
218 1, (
void *) &cz_attr->n_hdt_sync_loss) != 0)
return -1;
221 1, (
void *) &cz_attr->n_hdt_parity_err) != 0)
return -1;
224 1, (
void *) &cz_attr->n_wbvt_sync_loss) != 0)
return -1;
227 1, (
void *) &cz_attr->n_wbvt_slips) != 0)
return -1;
230 15, (
void *) cz_attr->lat_unit) != 0)
return -1;
233 15, (
void *) cz_attr->lon_unit) != 0)
return -1;
236 1, (
void *) &cz_attr->center_lat) != 0)
return -1;
239 1, (
void *) &cz_attr->center_lon) != 0)
return -1;
242 1, (
void *) &cz_attr->cntr_sol_zen) != 0)
return -1;
245 1, (
void *) &cz_attr->up_lft_lat) != 0)
return -1;
248 1, (
void *) &cz_attr->up_lft_lon) != 0)
return -1;
251 1, (
void *) &cz_attr->up_rgt_lat) != 0)
return -1;
254 1, (
void *) &cz_attr->up_rgt_lon) != 0)
return -1;
257 1, (
void *) &cz_attr->lo_lft_lat) != 0)
return -1;
260 1, (
void *) &cz_attr->lo_lft_lon) != 0)
return -1;
263 1, (
void *) &cz_attr->lo_rgt_lat) != 0)
return -1;
266 1, (
void *) &cz_attr->lo_rgt_lon) != 0)
return -1;
269 1, (
void *) cz_attr->limits) != 0)
return -1;
272 1, (
void *) cz_attr->limits + 1) != 0)
return -1;
275 1, (
void *) cz_attr->limits + 2) != 0)
return -1;
278 1, (
void *) cz_attr->limits + 3) != 0)
return -1;
281 1, (
void *) &cz_attr->start_cntr_lat) != 0)
return -1;
284 1, (
void *) &cz_attr->start_cntr_lon) != 0)
return -1;
287 1, (
void *) &cz_attr->end_cntr_lat) != 0)
return -1;
290 1, (
void *) &cz_attr->end_cntr_lon) != 0)
return -1;
295 if (
hdfio_rd_sd(hdfid,
"slat", (
void *) cz_dat->slat) != 0)
298 if (
hdfio_rd_sd(hdfid,
"slon", (
void *) cz_dat->slon) != 0)
301 if (
hdfio_rd_sd(hdfid,
"clat", (
void *) cz_dat->clat) != 0)
304 if (
hdfio_rd_sd(hdfid,
"clon", (
void *) cz_dat->clon) != 0)
307 if (
hdfio_rd_sd(hdfid,
"elat", (
void *) cz_dat->elat) != 0)
310 if (
hdfio_rd_sd(hdfid,
"elon", (
void *) cz_dat->elon) != 0)
313 if (
hdfio_rd_sd(hdfid,
"tilt", (
void *) cz_dat->tilt) != 0)
316 tmp_ptr = (
unsigned char *) (cz_dat->counts[0]);
317 if (
hdfio_rd_sd(hdfid,
"band1", (
void *) tmp_ptr) != 0)
320 tmp_ptr = (
unsigned char *) (cz_dat->counts[1]);
321 if (
hdfio_rd_sd(hdfid,
"band2", (
void *) tmp_ptr) != 0)
324 tmp_ptr = (
unsigned char *) (cz_dat->counts[2]);
325 if (
hdfio_rd_sd(hdfid,
"band3", (
void *) tmp_ptr) != 0)
328 tmp_ptr = (
unsigned char *) (cz_dat->counts[3]);
329 if (
hdfio_rd_sd(hdfid,
"band4", (
void *) tmp_ptr) != 0)
332 tmp_ptr = (
unsigned char *) (cz_dat->counts[4]);
333 if (
hdfio_rd_sd(hdfid,
"band5", (
void *) tmp_ptr) != 0)
336 tmp_ptr = (
unsigned char *) (cz_dat->counts[5]);
337 if (
hdfio_rd_sd(hdfid,
"band6", (
void *) tmp_ptr) != 0)
340 if (
hdfio_rd_sd(hdfid,
"orb_vec", (
void *) cz_dat->orb_vec) != 0)
343 if (
hdfio_rd_sd(hdfid,
"att_ang", (
void *) cz_dat->att_ang) != 0)
346 if (
hdfio_rd_sd(hdfid,
"pos_err", (
void *) cz_dat->pos_err) != 0)
349 if (
hdfio_rd_sd(hdfid,
"cntl_pt_cols", (
void *) cz_dat->ctl_pt_cols)
353 if (
hdfio_rd_sd(hdfid,
"cntl_pt_rows", (
void *) cz_dat->ctl_pt_rows)
357 if (
hdfio_rd_sd(hdfid,
"latitude", (
void *) cz_dat->ctl_pt_lat) != 0)
360 if (
hdfio_rd_sd(hdfid,
"longitude", (
void *) cz_dat->ctl_pt_lon) != 0)
363 if (
hdfio_rd_sd(hdfid,
"gain", (
void *) cz_dat->gain) != 0)
366 if (
hdfio_rd_sd(hdfid,
"slope", (
void *) cz_dat->slope) != 0)
369 if (
hdfio_rd_sd(hdfid,
"intercept", (
void *) cz_dat->intercept) != 0)