Go to the documentation of this file.
32 char line[500], line_sav[500], *
str;
38 if ((fmt->dim_id = malloc(fmt->n_dim_defs * sizeof ( attr_str))) ==
NULL) {
39 printf(
"**************Program error\n");
40 printf(
"in: %s, array definition structure allocation failed\n",
48 for (
i = 0;
i < fmt->n_dim_defs;
i++) {
50 printf(
"**************Program error\n");
52 "unable to read array dimension description # %d of file:\n'%s'\n",
54 printf(
"last line read:\n'%s'\n",
line);
66 printf(
"**************Program error\n");
67 printf(
"Unable to get <attribute name> (col 1) portion of dimension "
69 printf(
"line %d, fmt table: %s\n",
i,
file);
70 printf(
"last line read:\n'%s'\n", line_sav);
77 printf(
"**************Program error\n");
78 printf(
"Unable to get <short name> (col 2) portion of dimension "
80 printf(
"line %d, fmt table: %s\n",
i,
file);
81 printf(
"last line read:\n'%s'\n", line_sav);
91 for (
j = 0;
j < fmt->n_attr;
j++) {
92 if (strcmp(fmt->att[
j].obj_nm,
"gbl") == 0) {
93 if (strcmp(fmt->att[
j].int_nm, fmt->dim_id[
i].att_nm) == 0) {
98 fmt->att[
j].dim_index =
i;
103 if (fmt->att[
j].type == DFNT_CHAR) {
104 printf(
"**************Program error\n");
105 printf(
"dimension descriptor long name: '%s'\n",
106 fmt->dim_id[
i].att_nm);
107 printf(
"cannot be a char type\n");
108 printf(
"line %d, fmt table: %s\n",
i,
file);
109 printf(
"last line read:\n'%s'\n", line_sav);
114 printf(
"**************Program error\n");
115 printf(
"dimension descriptor long name: '%s'\n",
116 fmt->dim_id[
i].att_nm);
117 printf(
"must be read in in attribute section\n");
118 printf(
"(cannot have read keyword of NOREAD)\n");
119 printf(
"line %d, fmt table: %s\n",
i,
file);
120 printf(
"last line read:\n'%s'\n", line_sav);
124 if (fmt->att[
j].count != 1) {
125 printf(
"**************Program error\n");
126 printf(
"dimension descriptor long name: '%s'\n",
127 fmt->dim_id[
i].att_nm);
128 printf(
"must be for attribute with a single value\n");
129 printf(
"(number of values must be 1)\n");
130 printf(
"line %d, fmt table: %s\n",
i,
file);
131 printf(
"last line read:\n'%s'\n", line_sav);
140 printf(
"**************Program error\n");
141 printf(
"No attribute named: '%s' was found\n", fmt->dim_id[
i].att_nm);
142 printf(
"in the global attributes, from line %d, file %s\n",
i,
file);
143 printf(
"last line read:\n'%s'\n", line_sav);
150 fmt->dim_id[
i].dim_size = -1;
char * get_line(char *, int, FILE *, int)
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude resolving resolving GSFcd00179 Corrected handling of fill values for[Sensor|Solar][Zenith|Azimuth] resolving MODxl01751 Changed to validate LUT version against a value retrieved from the resolving MODxl02056 Changed to calculate Solar Diffuser angles without adjustment for estimated post launch changes in the MODIS orientation relative to incidentally resolving defects MODxl01766 Also resolves MODxl01947 Changed to ignore fill values in SCI_ABNORM and SCI_STATE rather than treating them as resolving MODxl01780 Changed to use spacecraft ancillary data to recognise when the mirror encoder data is being set by side A or side B and to change calculations accordingly This removes the need for seperate LUTs for Side A and Side B data it makes the new LUTs incompatible with older versions of the and vice versa Also resolves MODxl01685 A more robust GRing algorithm is being which will create a non default GRing anytime there s even a single geolocated pixel in a granule Removed obsolete messages from seed file
char * s_parse(char *, int)
int fmt_rd_dim(char *file, FILE *fid, fmt_str *fmt)
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy(l2prod->title, "no title yet")