Go to the documentation of this file.
31 #define CAL_SUM_LNAM "Calibration Qcality Summary"
32 #define CAL_SCAN_LNAM "Calibration Quality per Scan"
34 int32
create_sds(int32,
char *, int32, int32, int32 *, int32, VOIDP *);
36 int dims[3] = {0, 0, 0}, sdsid, iret;
37 char *tot_line =
"Number of Scan Lines";
44 if ((sdsid =
create_sds(sdfid,
"cal_sum", DFNT_UINT8, 2,
45 (int32 *) dims, vid, (VOIDP) l1_data.cal_sum)) < 0) {
46 fprintf(
stderr,
"wrt_czcs_qual: create_sds failed on cal_sum\n");
50 fprintf(
stderr,
"wrt_czcs_qual: set_dim_names failed on cal_sum\n");
53 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
55 fprintf(
stderr,
"wrt_czcs_qual: SDsetattr failed on cal_sum, long_name\n");
62 if ((sdsid =
create_sds(sdfid,
"cal_scan", DFNT_UINT8, 2,
63 (int32 *) dims, vid, (VOIDP) l1_data.cal_scan)) < 0) {
64 fprintf(
stderr,
"wrt_czcs_qual: create_sds failed on cal_scan\n");
68 fprintf(
stderr,
"wrt_czcs_qual: set_dim_names failed on cal_scan\n");
71 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
74 "wrt_czcs_qual: SDsetattr failed on cal_scan, long_name\n");
int wrt_czcs_qual(int32 sdfid, int32 vid, int nlin, l1_data_struc l1_data)
int32 set_dim_names(int32 sds_id, char *d0, char *d1, char *d2)
int32 create_sds(int32 sdfid, char *sdsname, int32 nt, int32 rank, int32 *dims, int32 vid, VOIDP *data)