- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ppStack/src (modified) (1 prop)
-
ppStack/src/ppStackArguments.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/ppStack/src/ppStackArguments.c
r23841 r27840 43 43 value = psMetadataLookup##TYPE(&mdok, recipe, RECIPENAME); \ 44 44 if (!mdok) { \ 45 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to find %s in recipe %s", \45 psError(PPSTACK_ERR_CONFIG, true, "Unable to find %s in recipe %s", \ 46 46 RECIPENAME, PPSTACK_RECIPE); \ 47 47 goto ERROR; \ … … 58 58 value = psMetadataLookup##TYPE(&mdok, recipe, RECIPENAME); \ 59 59 if (!mdok) { \ 60 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to find %s in recipe %s", \60 psError(PPSTACK_ERR_CONFIG, true, "Unable to find %s in recipe %s", \ 61 61 RECIPENAME, PPSTACK_RECIPE); \ 62 62 goto ERROR; \ … … 73 73 name = psMetadataLookupStr(NULL, recipe, RECIPENAME); \ 74 74 if (!name) { \ 75 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to find %s in recipe %s", \76 RECIPENAME, PPSTACK_RECIPE);\75 psError(PPSTACK_ERR_CONFIG, true, "Unable to find %s in recipe %s", \ 76 RECIPENAME, PPSTACK_RECIPE); \ 77 77 goto ERROR; \ 78 78 } \ … … 108 108 value = psMetadataLookupStr(NULL, recipe, mdName); 109 109 if (!value) { 110 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to find %s in recipe %s",110 psError(PPSTACK_ERR_CONFIG, true, "Unable to find %s in recipe %s", 111 111 mdName, PPSTACK_RECIPE); 112 112 return false; … … 148 148 psMetadataAddStr(arguments, PS_LIST_TAIL, "-stamps", 0, "Stamps file with x,y,flux per line", NULL); 149 149 psMetadataAddStr(arguments, PS_LIST_TAIL, "-stats", 0, "Statistics file", NULL); 150 psMetadataAdd S32(arguments, PS_LIST_TAIL, "-iter", 0, "Number of rejection iterations", 0);150 psMetadataAddF32(arguments, PS_LIST_TAIL, "-combine-iter", 0, "Number of rejection iterations per input", NAN); 151 151 psMetadataAddF32(arguments, PS_LIST_TAIL, "-combine-rej", 0, 152 152 "Combination rejection thresold (sigma)", NAN); … … 185 185 psMetadataAddF32(arguments, PS_LIST_TAIL, "-zp-star-sys-1", 0, "Estimated systematic error; pass 1", NAN); 186 186 psMetadataAddF32(arguments, PS_LIST_TAIL, "-zp-star-sys-2", 0, "Estimated systematic error; pass 2", NAN); 187 psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-dir", 0, "Directory for temporary images", NULL); 187 188 psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-image", 0, "Suffix for temporary images", NULL); 188 189 psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-mask", 0, "Suffix for temporary masks", NULL); … … 206 207 psMetadata *inputs = psMetadataConfigRead(NULL, &numBad, argv[argNum], false); // Input file info 207 208 if (!inputs || numBad > 0) { 208 psError(P S_ERR_BAD_PARAMETER_VALUE, false, "Unable to cleanly read MDC file with inputs.");209 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to cleanly read MDC file with inputs."); 209 210 return false; 210 211 } … … 228 229 int numThreads = psMetadataLookupS32(NULL, arguments, "-threads"); // Number of threads 229 230 if (numThreads > 0 && !psThreadPoolInit(numThreads)) { 230 psError(P S_ERR_UNKNOWN, false, "Unable to setup %d threads", numThreads);231 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to setup %d threads", numThreads); 231 232 return false; 232 233 } … … 246 247 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // Recipe 247 248 if (!recipe) { 248 psError(P S_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSTACK_RECIPE);249 psError(PPSTACK_ERR_CONFIG, false, "Unable to find recipe %s", PPSTACK_RECIPE); 249 250 goto ERROR; 250 251 } 251 252 252 VALUE_ARG_RECIPE_ INT("-iter", "ITER", S32, 0);253 VALUE_ARG_RECIPE_FLOAT("-combine-iter", "COMBINE.ITER", F32); 253 254 VALUE_ARG_RECIPE_FLOAT("-combine-rej", "COMBINE.REJ", F32); 254 255 VALUE_ARG_RECIPE_FLOAT("-combine-sys", "COMBINE.SYS", F32); … … 260 261 VALUE_ARG_RECIPE_FLOAT("-poor-frac", "POOR.FRACTION", F32); 261 262 262 valueArgRecipeStr(arguments, recipe, "-mask-val", "MASK. VAL",recipe);263 valueArgRecipeStr(arguments, recipe, "-mask-val", "MASK.IN", recipe); 263 264 valueArgRecipeStr(arguments, recipe, "-mask-bad", "MASK.BAD", recipe); 264 265 valueArgRecipeStr(arguments, recipe, "-mask-poor", "MASK.POOR", recipe); … … 316 317 317 318 pmConfigCamerasCull(config, NULL); 318 pmConfigRecipesCull(config, "PPSTACK,PPSUB,PPSTATS,PSPHOT, MASKS,JPEG");319 pmConfigRecipesCull(config, "PPSTACK,PPSUB,PPSTATS,PSPHOT,PSASTRO,MASKS,JPEG"); 319 320 320 321 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
