34 #define MSEC_LNAM "Scan-line time, milliseconds of day"
35 #define MSEC_VRNG "(0, 86399999)"
36 #define MSEC_UNITS "milliseconds"
38 #define TILT_LNAM "Tilt angle for scan line"
39 #define TILT_VRNG "(-20.1,20.1)"
40 #define TILT_UNITS "degrees"
42 #define SLAT_LNAM "Scan start-pixel latitude"
43 #define CLAT_LNAM "Scan center-pixel longitude"
44 #define ELAT_LNAM "Scan end-pixel latitude"
45 #define SLON_LNAM "Scan start-pixel longitude"
46 #define CLON_LNAM "Scan center-pixel latitude"
47 #define ELON_LNAM "Scan end-pixel longitude"
48 #define LAT_RNG "(-90.,90.)"
49 #define LON_RNG "(-180., 180.)"
50 #define NUM_SCN_LN "Number of Scan Lines"
51 #define PIX_PER_SCN "Pixels per Scan Line"
52 int32
create_sds(int32,
char *, int32, int32, int32 *, int32, VOIDP *);
54 int dims[3] = {0, 0, 0}, sdsid, iret;
61 (VOIDP) l1_data.msec)) < 0) {
62 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on msec\n");
66 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on msec\n");
69 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
71 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on msec, long_name\n");
74 if ((iret = SDsetattr(sdsid,
"valid_range", DFNT_CHAR,
76 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on msec, valid_range\n");
79 if ((iret = SDsetattr(sdsid,
"units", DFNT_CHAR,
81 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on msec, units\n");
88 (VOIDP) l1_data.tilt)) < 0) {
89 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on tilt\n");
93 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on tilt\n");
96 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
98 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on tilt, long_name\n");
101 if ((iret = SDsetattr(sdsid,
"valid_range", DFNT_CHAR,
103 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on tilt, valid_range\n");
106 if ((iret = SDsetattr(sdsid,
"units", DFNT_CHAR,
108 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on tilt, units\n");
115 (VOIDP) l1_data.slat)) < 0) {
116 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on slat\n");
120 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on slat\n");
123 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
125 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on slat, long_name\n");
128 if ((iret = SDsetattr(sdsid,
"valid_range", DFNT_CHAR,
130 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on slat, valid_range\n");
137 (VOIDP) l1_data.slon)) < 0) {
138 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on slon\n");
142 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on slon\n");
145 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
147 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on slon, long_name\n");
150 if ((iret = SDsetattr(sdsid,
"valid_range", DFNT_CHAR,
152 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on slon, valid_range\n");
159 (VOIDP) l1_data.clat)) < 0) {
160 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on clat\n");
164 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on clat\n");
167 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
169 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on clat, long_name\n");
172 if ((iret = SDsetattr(sdsid,
"valid_range", DFNT_CHAR,
174 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on clat, valid_range\n");
181 (VOIDP) l1_data.clon)) < 0) {
182 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on clon\n");
186 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on clon\n");
189 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
191 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on clon, long_name\n");
194 if ((iret = SDsetattr(sdsid,
"valid_range", DFNT_CHAR,
196 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on clon, valid_range\n");
203 (VOIDP) l1_data.elat)) < 0) {
204 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on elat\n");
208 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on elat\n");
211 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
213 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on elat, long_name\n");
216 if ((iret = SDsetattr(sdsid,
"valid_range", DFNT_CHAR,
218 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on elat, valid_range\n");
225 (VOIDP) l1_data.elon)) < 0) {
226 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on elon\n");
230 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on elon\n");
233 if ((iret = SDsetattr(sdsid,
"long_name", DFNT_CHAR,
235 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on elon, long_name\n");
238 if ((iret = SDsetattr(sdsid,
"valid_range", DFNT_CHAR,
240 fprintf(
stderr,
"wrt_czcs_sla: SDsetattr failed on elon, valid_range\n");
249 (int32 *) dims, vid, (VOIDP) l1_data.sen_zen)) < 0) {
250 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on sen_zen\n");
254 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on sen_zen\n");
259 (int32 *) dims, vid, (VOIDP) l1_data.sen_az)) < 0) {
260 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on sen_az\n");
264 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on sen_az\n");
269 (int32 *) dims, vid, (VOIDP) l1_data.sol_zen)) < 0) {
270 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on sol_zen\n");
274 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on sol_zen\n");
279 (int32 *) dims, vid, (VOIDP) l1_data.sol_az)) < 0) {
280 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on sol_az\n");
284 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on sol_az\n");
289 (int32 *) dims, vid, (VOIDP) l1_data.all_lat)) < 0) {
290 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on all_lat\n");
294 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on all_lat\n");
299 (int32 *) dims, vid, (VOIDP) l1_data.all_lon)) < 0) {
300 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on all_lon\n");
304 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on all_lon\n");
309 (int32 *) dims, vid, (VOIDP) l1_data.Lt_443)) < 0) {
310 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on Lt_443\n");
314 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on Lt_443\n");
319 (int32 *) dims, vid, (VOIDP) l1_data.Lt_520)) < 0) {
320 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on Lt_520\n");
324 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on Lt_520\n");
329 (int32 *) dims, vid, (VOIDP) l1_data.Lt_550)) < 0) {
330 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on Lt_550\n");
334 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on Lt_550\n");
339 (int32 *) dims, vid, (VOIDP) l1_data.Lt_670)) < 0) {
340 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on Lt_670\n");
344 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on Lt_670\n");
349 (int32 *) dims, vid, (VOIDP) l1_data.Lt_750)) < 0) {
350 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on Lt_750\n");
354 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on Lt_750\n");
359 (int32 *) dims, vid, (VOIDP) l1_data.Lt_11500)) < 0) {
360 fprintf(
stderr,
"wrt_czcs_sla: create_sds failed on Lt_11500\n");
364 fprintf(
stderr,
"wrt_czcs_sla: set_dim_names failed on Lt_11500\n");