Go to the documentation of this file.
47 char *sec_ids[] = {
"**ATTR",
"**ARR_DIM",
"**SDS",
"**RASTER",
"**VGROUP"};
50 SEC_CODE_ATTR, SEC_CODE_ARR_DIM, SEC_CODE_SDS,
51 SEC_CODE_RASTER, SEC_CODE_VGROUP
58 if ((fid = fopen(
file,
"r")) ==
NULL) {
59 printf(
"**************Program error\n");
60 printf(
"unable to open format file:\n'%s'\n",
file);
68 for (isec = 0; isec < nsec; isec++) {
70 printf(
"**************Format table read error\n");
71 printf(
"table: %s\n",
file);
72 printf(
"for section # %d, name: %s\n", isec, sec_ids[isec]);
73 printf(
"unable to read section description line\n");
81 printf(
"**************Format table read error\n");
82 printf(
"table: %s\n",
file);
83 printf(
"for section # %d, name: %s\n", isec, sec_ids[isec]);
84 printf(
"unable to find section keyword\n");
88 if (strcmp(
str, sec_ids[isec]) != 0) {
89 printf(
"**************Format table read error\n");
90 printf(
"table: %s\n",
file);
91 printf(
"for section # %d, name: %s\n", isec, sec_ids[isec]);
92 printf(
"improper section name: %s, found\n",
str);
97 printf(
"**************Format table read error\n");
98 printf(
"table: %s\n",
file);
99 printf(
"for section # %d, name: %s\n", isec, sec_ids[isec]);
100 printf(
"no # of section descriptions found\n");
104 if (sscanf(
str,
"%d", &ival) == EOF) {
105 printf(
"**************Format table read error\n");
106 printf(
"table: %s\n",
file);
107 printf(
"for section # %d, name: %s\n", isec, sec_ids[isec]);
108 printf(
"could not read # description lines\n");
117 printf(
"%s - fmt_rd call for %s\n", __FILE__, sec_ids[isec]);
122 case SEC_CODE_ARR_DIM:
123 printf(
"%s - fmt_rd call for %s\n", __FILE__, sec_ids[isec]);
124 fmt->n_dim_defs = ival;
129 printf(
"%s - fmt_rd call for %s\n", __FILE__, sec_ids[isec]);
134 case SEC_CODE_RASTER:
135 printf(
"%s - fmt_rd call for %s\n", __FILE__, sec_ids[isec]);
136 fmt->n_raster = ival;
140 case SEC_CODE_VGROUP:
141 printf(
"%s - fmt_rd call for %s\n", __FILE__, sec_ids[isec]);
142 fmt->n_vgroup = ival;
148 printf(
"************** Program error\n");
149 printf(
"%s - This shouldn't happen, isec = %d\n", __FILE__, isec);
char * get_line(char *, int, FILE *, int)
int fmt_rd_ras(char *, FILE *, fmt_str *)
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 *, fmt_str *)
int fmt_read(char *file, fmt_str *fmt)
int fmt_rd_l3vg(char *, FILE *, fmt_str *)
int fmt_rd_attr(char *, FILE *, fmt_str *)
int fmt_rd_sds(char *, FILE *, fmt_str *)