Changeset 7067 for trunk/ppMerge/src/ppMergeCheckInputs.c
- Timestamp:
- May 4, 2006, 3:53:10 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeCheckInputs.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeCheckInputs.c
r7061 r7067 4 4 #include <psmodules.h> 5 5 6 #include "ppMerge.h" 6 7 #include "ppMergeCheckInputs.h" 7 8 #include "ppMergeData.h" … … 9 10 // Check input files to make sure everything's consistent 10 11 ppMergeData *ppMergeCheckInputs(ppMergeOptions *options, // Options 11 constpmConfig *config // Configuration12 pmConfig *config // Configuration 12 13 ) 13 14 { … … 34 35 psFits *inFile = psFitsOpen(filenames->data[i], "r"); // The FITS file to read 35 36 if (!inFile) { 36 ps ErrorPrint(PS_ERR_IO, false, "Unable to open input file %s --- ignored.\n", name);37 psLogMsg(__func__, PS_LOG_WARN, "Unable to open input file %s --- ignored.\n", name); 37 38 // Kick it out 38 39 psFree(filenames->data[i]); … … 51 52 data->format = pmConfigCameraFormatFromHeader(config, header); 52 53 psFree(header); 53 if (! options->format) {54 if (!data->format) { 54 55 psLogMsg(__func__, PS_LOG_WARN, "Unable to identify camera format for input file %s --- " 55 56 "ignored.\n", name); … … 59 60 continue; 60 61 } 61 } else if (!pmConfigValidateCameraFormat( options->format, header)) {62 } else if (!pmConfigValidateCameraFormat(data->format, header)) { 62 63 psLogMsg(__func__, PS_LOG_WARN, "Input file %s doesn't match camera format --- ignored.\n", name); 63 64 // Kick it out … … 99 100 data->numCells = numCells; 100 101 101 return (numGood > 1); 102 if (numGood > 1) { 103 return data; 104 } 105 106 psFree(data); 107 return NULL; 102 108 } 103 109
Note:
See TracChangeset
for help on using the changeset viewer.
