Changeset 10214 for trunk/ppImage/src/ppImageOptions.c
- Timestamp:
- Nov 27, 2006, 6:37:47 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageOptions.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageOptions.c
r9857 r10214 137 137 overscanFit = PM_FIT_SPLINE; 138 138 } else if (strcasecmp(fit, "NONE")) { 139 psLogMsg(__func__, PS_LOG_WARN, "OVERSCAN.FIT (%s) in recipe %s is not one of NONE, POLYNOMIAL, or SPLINE", fit, RECIPE_NAME); 139 psLogMsg(__func__, PS_LOG_WARN, 140 "OVERSCAN.FIT (%s) in recipe %s is not one of NONE, POLYNOMIAL, or SPLINE", 141 fit, RECIPE_NAME); 140 142 exit(EXIT_FAILURE); 141 143 } … … 149 151 overscanStats = psStatsAlloc(PS_STAT_SAMPLE_MEDIAN); 150 152 } else { 151 psErrorStackPrint(stderr, "OVERSCAN.STAT (%s) in recipe %s is not one of MEAN or MEDIAN", stat, RECIPE_NAME); 153 psErrorStackPrint(stderr, "OVERSCAN.STAT (%s) in recipe %s is not one of MEAN or MEDIAN", 154 stat, RECIPE_NAME); 152 155 exit(EXIT_FAILURE); 153 156 } … … 173 176 // binned image options 174 177 options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN"); 175 if (!status) options->xBin1 = 16; 178 if (!status) { 179 psWarning("BIN1.XBIN not found in recipe: setting to default value.\n"); 180 options->xBin1 = 16; 181 } 176 182 options->yBin1 = psMetadataLookupS32(&status, recipe, "BIN1.YBIN"); 177 if (!status) options->yBin1 = 16; 183 if (!status) { 184 psWarning("BIN1.YBIN not found in recipe: setting to default value.\n"); 185 options->yBin1 = 16; 186 } 178 187 179 188 options->xBin2 = psMetadataLookupS32(&status, recipe, "BIN2.XBIN"); 180 if (!status) options->xBin1 = 16; 189 if (!status) { 190 psWarning("BIN2.XBIN not found in recipe: setting to default value.\n"); 191 options->xBin1 = 16; 192 } 181 193 options->yBin2 = psMetadataLookupS32(&status, recipe, "BIN2.YBIN"); 182 if (!status) options->yBin1 = 16; 194 if (!status) { 195 psWarning("BIN2.YBIN not found in recipe: setting to default value.\n"); 196 options->yBin1 = 16; 197 } 183 198 184 199 options->BaseFITS = psMetadataLookupBool(NULL, recipe, "BASE.FITS"); … … 196 211 options->doAstromMosaic = psMetadataLookupBool(NULL, recipe, "ASTROM.MOSAIC"); 197 212 if ((options->doAstromChip || options->doAstromMosaic) && !options->doPhotom) { 198 psLogMsg(__func__, PS_LOG_ERROR, "Invalid P hase2 Options: cannot do ASTROMetry without PHOTOMetry");213 psLogMsg(__func__, PS_LOG_ERROR, "Invalid PPIMAGE options: cannot do ASTROMetry without PHOTOMetry"); 199 214 exit(EXIT_FAILURE); 200 215 } … … 202 217 options->doAddstar = psMetadataLookupBool(NULL, recipe, "ADDSTAR"); 203 218 if (options->doAddstar && !(options->doAstromChip || options->doAstromMosaic)) { 204 psLogMsg(__func__, PS_LOG_ERROR, "Invalid P hase2 Options: cannot Addstar without Astrometry");219 psLogMsg(__func__, PS_LOG_ERROR, "Invalid PPIMAGE options: cannot Addstar without Astrometry"); 205 220 exit(EXIT_FAILURE); 206 221 }
Note:
See TracChangeset
for help on using the changeset viewer.
