Go to the documentation of this file.
38 int32 a_n_type, a_count;
43 if ((attr_index = SDfindattr(l1info.sdfid,
name))
45 printf(
"read_g_attr: Error in SDfindattr for attribute: '%s'\n",
52 if (SDattrinfo(l1info.sdfid, attr_index, a_name, &a_n_type, &a_count)
54 printf(
"read_g_attr: Error in SDattrinfo for attribute: '%s'\n",
59 if (a_n_type != *n_type) {
61 "read_g_attr: attribute: '%s', difference in number type found\n",
63 printf(
" expected: %d, read: %d\n", *n_type, a_n_type);
67 if (a_count != *
count) {
68 printf(
"read_g_attr: attribute: '%s', difference in count found\n",
70 printf(
" expected: %d, read: %d\n", *
count, a_count);
76 if (SDreadattr(l1info.sdfid, attr_index,
data) == -1) {
77 printf(
"read_g_attr: attribute: '%s', Error reading data\n",
int32 read_g_attr(l1info_struct l1info, char *name, int32 *n_type, int32 *count, void *data)
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data