Go to the documentation of this file.
32 char line[500], line_sav[500], *
str;
38 if ((fmt->ras = malloc(fmt->n_raster * sizeof ( ras_str)))
40 printf(
"**************Program error\n");
41 printf(
"in: %s, raster definition storage allocation failed\n", __FILE__);
48 for (
i = 0;
i < fmt->n_raster;
i++) {
50 printf(
"**************Program error\n");
51 printf(
"unable to read raster definition # %d of file:\n'%s'\n",
53 printf(
"last line read:\n'%s'\n",
line);
63 printf(
"**************Program error\n");
64 printf(
"unable to read raster label name, line %d, entry #1\n",
i);
65 printf(
"last line read:\n'%s'\n", line_sav);
75 printf(
"**************Program error\n");
77 "unable to read raster palette label, line # %d of file:\n'%s'\n",
79 printf(
"last line read:\n'%s'\n", line_sav);
90 printf(
"**************Program error\n");
92 "unable to read raster # pixels short name, line # %d of file:\n'%s'\n",
94 printf(
"last line read:\n'%s'\n", line_sav);
99 for (
k = 0;
k < fmt->n_dim_defs;
k++) {
100 if (strcmp(
str, fmt->dim_id[
k].att_short) == 0) {
102 fmt->ras[
i].npix_indx =
k;
107 printf(
"**************Program error\n");
109 "No definition of %s was found in the array definition section\n",
111 printf(
"For raster pixel dimension of line %d of file:"
112 "\n'%s'\n",
i,
file);
113 printf(
"last line read:\n'%s'\n", line_sav);
119 printf(
"**************Program error\n");
121 "unable to read raster # lines short name, line # %d of file:\n'%s'\n",
i,
file);
122 printf(
"last line read:\n'%s'\n", line_sav);
127 for (
k = 0;
k < fmt->n_dim_defs;
k++) {
128 if (strcmp(
str, fmt->dim_id[
k].att_short) == 0) {
130 fmt->ras[
i].nlin_indx =
k;
135 printf(
"**************Program error\n");
137 "No definition of %s was found in the array definition section\n",
139 printf(
"For raster line dimension of line %d of file:"
140 "\n'%s'\n",
i,
file);
141 printf(
"last line read:\n'%s'\n", line_sav);
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)
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy(l2prod->title, "no title yet")
int fmt_rd_ras(char *file, FILE *fid, fmt_str *fmt)