Go to the documentation of this file.
28 static int get_entered = 0, files_present[
NFILES];
29 static char file_store[
NFILES][563];
31 char *fid_names[] = {
"FAST_TRANS_COEFF_DRY",
"FAST_TRANS_COEFF_OZO",
32 "FAST_TRANS_COEFF_WCO",
"FAST_TRANS_COEFF_WTL",
"FAST_TRANS_COEFF_WTS",
33 "SNOW_ALBEDO",
"ECOLOGY_MAP",
"GLOBAL_EMISS",
"ALBEDO_CLIM",
34 "TRANSMITTANCE_COEFFS",
"SINGLE_SCAT",
35 "SCAT_ICE",
"SCAT_ICE_03_M_S",
"SCAT_ICE_07_M_S",
"SCAT_ICE_15_M_S",
36 "SCAT_ICE_SD_03_M_S",
"SCAT_ICE_SD_07_M_S",
"SCAT_ICE_SD_15_M_S",
37 "SCAT_WATER",
"SCAT_WATER_03_M_S",
"SCAT_WATER_07_M_S",
38 "SCAT_WATER_15_M_S",
"SCAT_WATER_SD_03_M_S",
"SCAT_WATER_SD_07_M_S",
39 "SCAT_WATER_SD_15_M_S" };
42 char file[500], *filep;
48 for( ilin = 0; ilin < len1; ilin++ )
51 if( get_entered == 0 )
55 for( ilin = 0; ilin <
NFILES; ilin++ )
57 files_present[ilin] = 0;
58 strcpy( file_store[ilin],
"NONE" );
62 if( ( filep = getenv(
"OCDATAROOT") ) ==
NULL)
64 printf(
"E: %s, %d: unable to get cloud table namen",
70 strcat(
file,
"/cloud/" );
72 strcat(
file,
"/cloud_table_names.txt" );
74 if( ( rd_stream = fopen(
file,
"r" ) ) ==
NULL )
77 "E: %s, %d: Open error for cloud table file: %s\n",
78 __FILE__, __LINE__,
file );
83 while( fgets(
str, 562, rd_stream ) !=
NULL )
87 floc = strchr(
str,
'=' );
90 printf(
"E: %s, %d: A data line in file: %s\n",
91 __FILE__, __LINE__,
file );
92 printf(
" Does not have the form NAME_ID=NAME\n" );
93 printf(
" Line is: %s\n",
str );
100 for( ilin = 0; ilin <
NFILES; ilin++ )
102 if( strcmp(
upcase(
id ), fid_names[ilin] ) == 0 )
104 files_present[ilin] = 1;
105 strcpy( file_store[ilin], floc );
112 printf(
"I: %s, %d: No match found for cloud table file ID: %s\n",
113 __FILE__, __LINE__,
id );
121 for( ilin = 0; ilin <
NFILES; ilin++ )
123 if( files_present[ilin] == 0 )
125 printf(
"E: %s, %d: Cloud table: %s was not found\n",
126 __FILE__, __LINE__, fid_names[ilin] );
134 if( *
status != 0 )
return;
137 if( file_store[*fname_id][0] ==
'/' )
139 strcpy( fname, file_store[*fname_id] );
144 if( ( filep = getenv(
"OCDATAROOT") ) ==
NULL)
146 printf(
"E: %s, %d: unable to get cloud table namen",
147 __FILE__, __LINE__ );
153 strcat( fname,
"/cloud/" );
155 strcat( fname,
"common/" );
159 strcat( fname,
"/" );
161 strcat( fname, file_store[*fname_id] );
165 ilin = strlen( fname );
166 for(
i = ilin - 1;
i < len1;
i++ )
void get_cld_tbl_(int *inst_id, int *fname_id, char *fname, int *status, long len1)
const char * sensorId2SensorDir(int sensorId)
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 * upcase(char *instr)
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy(l2prod->title, "no title yet")