Go to the documentation of this file.
52 if (strcmp(attr.obj_nm,
"gbl") == 0) {
55 tstr = malloc(a_count + 1);
56 memcpy(tstr,
value.chr, a_count);
57 *(tstr + a_count) = 0;
58 for (
j = 0;
j < (a_count - 1);
j++)
62 printf(
"'%s'(%d) is '%s'\n",
63 attr.access_nm, a_count, tstr);
67 for (
j = 0;
j < attr.count;
j++) {
68 printf(
"'%s'[%d] is %f\n", attr.access_nm,
73 for (
j = 0;
j < attr.count;
j++) {
74 printf(
"'%s'[%d] is %f\n", attr.access_nm,
79 for (
j = 0;
j < attr.count;
j++) {
80 printf(
"'%s'[%d] is %d\n", attr.access_nm,
85 for (
j = 0;
j < attr.count;
j++) {
86 printf(
"'%s'[%d] is %d\n", attr.access_nm,
91 for (
j = 0;
j < attr.count;
j++) {
92 printf(
"'%s'[%d] is %d\n", attr.access_nm,
97 for (
j = 0;
j < attr.count;
j++) {
98 printf(
"'%s'[%d] is %d\n", attr.access_nm,
103 printf(
"************* Program Problem DEFAULT CASE OF VALUE CHECKING\n");
110 tstr = malloc(a_count + 1);
112 *(tstr + a_count) = 0;
113 for (
j = 0;
j < (a_count - 1);
j++)
114 if (*(tstr +
j) == 0)
117 printf(
"sds: '%s', attr '%s'(%d) is '%s'\n", attr.obj_nm,
118 attr.access_nm, a_count, tstr);
123 for (
j = 0;
j < attr.count;
j++) {
124 printf(
"sds: '%s', attr '%s'[%d] is %f\n", attr.obj_nm,
125 attr.access_nm,
j,
value.f32[
j]);
129 for (
j = 0;
j < attr.count;
j++) {
130 printf(
"sds: '%s', attr '%s'[%d] is %f\n", attr.obj_nm,
131 attr.access_nm,
j,
value.f64[
j]);
135 for (
j = 0;
j < attr.count;
j++) {
136 printf(
"sds: '%s', attr '%s'[%d] is %d\n", attr.obj_nm,
137 attr.access_nm,
j,
value.i16[
j]);
141 for (
j = 0;
j < attr.count;
j++) {
142 printf(
"sds: '%s', attr '%s'[%d] is %d\n", attr.obj_nm,
143 attr.access_nm,
j,
value.i32[
j]);
147 printf(
"************* Program Problem DEFAULT CASE OF VALUE CHECKING\n");
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used DFNT_INT32
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used DFNT_INT16
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through but prod_ix is still based ie aph_2_giop for the second and prod_ix set to PARAM_TYPE_INT name_prefix is compared with the beginning of the product name If name_suffix is not empty the it must match the end of the product name The characters right after the prefix are read as an integer and prod_ix is set to that number strncpy(l2prod->name_prefix, "myprod", UNITLEN)
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used DFNT_FLOAT32
void attr_disp(attr_str attr, u_data value, int a_count)