Changeset 29379
- Timestamp:
- Oct 12, 2010, 2:24:48 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
ippconfig/recipes/filerules-mef.mdc (modified) (1 diff)
-
ippconfig/recipes/filerules-simple.mdc (modified) (1 diff)
-
ippconfig/recipes/filerules-split.mdc (modified) (1 diff)
-
pstamp/src/ppstamp.c (modified) (1 diff)
-
pstamp/src/ppstamp.h (modified) (1 diff)
-
pstamp/src/ppstampArguments.c (modified) (1 diff)
-
pstamp/src/ppstampMakeStamp.c (modified) (1 diff)
-
pstamp/src/ppstampOptions.h (modified) (1 diff)
-
pstamp/src/ppstampParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/filerules-mef.mdc
r28541 r29379 295 295 296 296 PPSTAMP.OUTPUT OUTPUT {OUTPUT}.fits IMAGE COMP_IMG FPA TRUE NONE 297 PPSTAMP.OUTPUT.DIFF OUTPUT {OUTPUT}.fits IMAGE COMP_SUB FPA TRUE NONE 297 298 PPSTAMP.OUTPUT.MASK OUTPUT {OUTPUT}.mk.fits MASK COMP_MASK FPA TRUE NONE 298 299 PPSTAMP.OUTPUT.VARIANCE OUTPUT {OUTPUT}.wt.fits VARIANCE COMP_WT FPA TRUE NONE -
trunk/ippconfig/recipes/filerules-simple.mdc
r28541 r29379 261 261 262 262 PPSTAMP.OUTPUT OUTPUT {OUTPUT}.fits IMAGE COMP_IMG FPA TRUE NONE 263 PPSTAMP.OUTPUT.DIFF OUTPUT {OUTPUT}.fits IMAGE COMP_SUB FPA TRUE NONE 263 264 PPSTAMP.OUTPUT.MASK OUTPUT {OUTPUT}.mk.fits MASK COMP_MASK FPA TRUE NONE 264 265 PPSTAMP.OUTPUT.VARIANCE OUTPUT {OUTPUT}.wt.fits VARIANCE COMP_WT FPA TRUE NONE -
trunk/ippconfig/recipes/filerules-split.mdc
r28961 r29379 280 280 281 281 PPSTAMP.OUTPUT OUTPUT {OUTPUT}.fits IMAGE COMP_IMG FPA TRUE NONE 282 PPSTAMP.OUTPUT.DIFF OUTPUT {OUTPUT}.fits IMAGE COMP_SUB FPA TRUE NONE 282 283 PPSTAMP.OUTPUT.MASK OUTPUT {OUTPUT}.mk.fits MASK COMP_MASK FPA TRUE NONE 283 284 PPSTAMP.OUTPUT.VARIANCE OUTPUT {OUTPUT}.wt.fits VARIANCE COMP_WT FPA TRUE NONE -
trunk/pstamp/src/ppstamp.c
r25197 r29379 22 22 23 23 // define the active I/O files 24 if (!ppstampParseCamera(config )) {24 if (!ppstampParseCamera(config, options)) { 25 25 psErrorStackPrint(stderr, "Unable to parse camera."); 26 26 ppstampCleanup(config, options); -
trunk/pstamp/src/ppstamp.h
r25709 r29379 18 18 19 19 // Determine what type of camera, and initialise 20 bool ppstampParseCamera(pmConfig *config );20 bool ppstampParseCamera(pmConfig *config, ppstampOptions *options); 21 21 22 22 int ppstampMakeStamp(pmConfig *config, ppstampOptions *); -
trunk/pstamp/src/ppstampArguments.c
r24966 r29379 78 78 psArgumentRemove(argnum, &argc, argv); 79 79 } 80 if ((argnum = psArgumentGet(argc, argv, "-stage"))) { 81 psArgumentRemove(argnum, &argc, argv); 82 options->stage = psStringCopy(argv[argnum]); 83 psArgumentRemove(argnum, &argc, argv); 84 } 80 85 81 86 pmConfigFileSetsMD(config->arguments, &argc, argv, "ASTROM", "-astrom", "-astromlist"); -
trunk/pstamp/src/ppstampMakeStamp.c
r28882 r29379 233 233 int status = false; 234 234 235 pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT"); 235 pmFPAfile *output; 236 if (!options->stage || (strcmp(options->stage, "diff") != 0)) { 237 output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT"); 238 } else { 239 output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT.DIFF"); 240 } 236 241 if (!output) { 237 242 psError(PS_ERR_UNKNOWN, false, "Can't find output data\n"); -
trunk/pstamp/src/ppstampOptions.h
r16132 r29379 10 10 psString chipName; 11 11 psString cellName; 12 psString stage; 12 13 // 13 14 // Calculated Values -
trunk/pstamp/src/ppstampParseCamera.c
r24966 r29379 8 8 9 9 // Set up the ppstamp output Image file 10 bool setupOutput(pmConfig *config, pmFPAfile *input, bool doMask, bool doWeight)10 bool setupOutput(pmConfig *config, pmFPAfile *input, psString stage, bool doMask, bool doWeight) 11 11 { 12 pmFPAfile *output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT"); 12 pmFPAfile *output; 13 14 if (!stage || (strcmp(stage, "diff") != 0)) { 15 output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT"); 16 } else { 17 // need special filerule for diff stage image to allow for negative values 18 output = pmFPAfileDefineSkycell(config, NULL, "PPSTAMP.OUTPUT.DIFF"); 19 } 20 if (!output) { 21 psError(PS_ERR_UNKNOWN, false, "Unable to setup output."); 22 return false; 23 } 24 13 25 output->save = true; 14 26 … … 29 41 // something else that I'm missing? 30 42 31 bool ppstampParseCamera(pmConfig *config )43 bool ppstampParseCamera(pmConfig *config, ppstampOptions *options) 32 44 { 33 45 bool status = false; … … 83 95 84 96 // Set up the output target 85 if (!setupOutput(config, input, doMask, doWeight)) {97 if (!setupOutput(config, input, options->stage, doMask, doWeight)) { 86 98 psError(PS_ERR_UNKNOWN, false, "Unable to setup output."); 87 99 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
