Changeset 26543
- Timestamp:
- Jan 7, 2010, 5:37:07 PM (16 years ago)
- Location:
- branches/eam_branches/20091201
- Files:
-
- 10 edited
-
ppImage/src/ppImageParseCamera.c (modified) (1 diff)
-
ppImage/src/ppImageReplaceBackground.c (modified) (1 diff)
-
ppSim/src/ppSimPhotomReadout.c (modified) (3 diffs)
-
ppSim/src/ppSimPhotomReadoutFake.c (modified) (3 diffs)
-
ppSim/src/ppSimPhotomReadoutForce.c (modified) (3 diffs)
-
ppStack/src/ppStackCamera.c (modified) (2 diffs)
-
ppStack/src/ppStackMatch.c (modified) (1 diff)
-
ppSub/src/ppSubBackground.c (modified) (1 diff)
-
ppSub/src/ppSubCamera.c (modified) (1 diff)
-
pswarp/src/pswarpParseCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ppImage/src/ppImageParseCamera.c
r24492 r26543 256 256 PS_ASSERT (psphotInput, false); 257 257 258 // specify the number of psphot input images 259 psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1); 260 258 261 // define associated psphot input/output files 259 262 if (!psphotDefineFiles (config, psphotInput)) { -
branches/eam_branches/20091201/ppImage/src/ppImageReplaceBackground.c
r25759 r26543 80 80 // the background model has not been defined, or at least not generated 81 81 if (!modelFile || !modelRO) { 82 if (!psphotModelBackground (config, &roView, "PPIMAGE.CHIP")) {82 if (!psphotModelBackgroundReadoutFileIndex(config, &roView, "PPIMAGE.CHIP", 0)) { 83 83 psError(PS_ERR_UNKNOWN, false, "Unable to model background"); 84 84 return false; -
branches/eam_branches/20091201/ppSim/src/ppSimPhotomReadout.c
r21183 r26543 39 39 # if 0 40 40 // set the photcode for this image 41 if (!psphotAddPhotcode (recipe, config, view, "PPSIM.CHIP")) {41 if (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.CHIP", 0)) { 42 42 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 43 43 return false; … … 74 74 75 75 // Generate the mask and weight images, including the user-defined analysis region of interest 76 psphotSetMaskAndWeight (config, readout, recipe);76 psphotSetMaskAndWeight (config, view, recipe); 77 77 78 78 // load the psf model, if suppled. FWHM_X,FWHM_Y,etc are saved in the recipe … … 85 85 86 86 // generate a background model (median, smoothed image) 87 if (!psphotModelBackground (config, view, "PPSIM.CHIP")) {87 if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.CHIP", 0)) { 88 88 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 89 89 } 90 if (!psphotSubtractBackground (config, view, "PPSIM.CHIP")) {90 if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.CHIP", 0)) { 91 91 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 92 92 } -
branches/eam_branches/20091201/ppSim/src/ppSimPhotomReadoutFake.c
r21365 r26543 14 14 # if 0 15 15 // set the photcode for this image 16 if (!psphotAddPhotcode (recipe, config, view, "PPSIM.FAKE.CHIP")) {16 if (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.FAKE.CHIP", 0)) { 17 17 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 18 18 return false; … … 36 36 37 37 // Generate the mask and variance images, including the user-defined analysis region of interest 38 psphotSetMaskAndVariance (config, readout, recipe);38 psphotSetMaskAndVariance (config, view, recipe); 39 39 40 40 // XXX need to define the source pixels … … 65 65 66 66 // generate a background model (median, smoothed image) 67 if (!psphotModelBackground (config, view, "PPSIM.FAKE.CHIP")) {67 if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.FAKE.CHIP", 0)) { 68 68 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 69 69 } 70 if (!psphotSubtractBackground (config, view, "PPSIM.FAKE.CHIP")) {70 if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FAKE.CHIP", 0)) { 71 71 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 72 72 } -
branches/eam_branches/20091201/ppSim/src/ppSimPhotomReadoutForce.c
r21365 r26543 14 14 # if 0 15 15 // set the photcode for this image 16 if (!psphotAddPhotcode (recipe, config, view, "PPSIM.FAKE.CHIP")) {16 if (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.FAKE.CHIP", 0)) { 17 17 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 18 18 return false; … … 36 36 37 37 // Generate the mask and variance images, including the user-defined analysis region of interest 38 psphotSetMaskAndVariance (config, readout, recipe);38 psphotSetMaskAndVariance (config, view, recipe); 39 39 40 40 // XXX need to define the source pixels … … 58 58 59 59 // generate a background model (median, smoothed image) 60 if (!psphotModelBackground (config, view, "PPSIM.FORCE.CHIP")) {60 if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.FORCE.CHIP", 0)) { 61 61 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 62 62 } 63 if (!psphotSubtractBackground (config, view, "PPSIM.FORCE.CHIP")) {63 if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FORCE.CHIP", 0)) { 64 64 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 65 65 } -
branches/eam_branches/20091201/ppStack/src/ppStackCamera.c
r26076 r26543 373 373 psMetadataLookupBool(&mdok, config->arguments, "-photometry"); // perform photometry 374 374 if (doPhotom) { 375 // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by376 // psphotDefineFiles375 // This pmFPAfile, PSPHOT.INPUT, is just used as a carrier; output files (eg, 376 // PSPHOT.RESID) are defined by psphotDefineFiles 377 377 pmFPAfile *psphotInput = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT"); 378 378 if (!psphotInput) { … … 380 380 return false; 381 381 } 382 // specify the number of psphot input images 383 psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1); 382 384 383 385 // Define associated psphot input/output files -
branches/eam_branches/20091201/ppStack/src/ppStackMatch.c
r26537 r26543 144 144 psMetadataAddU8(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad); 145 145 146 psImage *binned = psphot BackgroundModel(ro, config); // Binned background model146 psImage *binned = psphotModelBackgroundReadoutNoFile(ro, config); // Binned background model 147 147 psImageBinning *binning = psMetadataLookupPtr(NULL, ro->analysis, 148 148 "PSPHOT.BACKGROUND.BINNING"); // Binning for model -
branches/eam_branches/20091201/ppSub/src/ppSubBackground.c
r23740 r26543 42 42 if (!modelRO) { 43 43 // Create the background model 44 if (!psphotModelBackground (config, view, "PPSUB.OUTPUT")) {44 if (!psphotModelBackgroundReadoutFileIndex(config, view, "PPSUB.OUTPUT", 0)) { 45 45 psError(PS_ERR_UNKNOWN, false, "Unable to model background"); 46 46 psFree(view); -
branches/eam_branches/20091201/ppSub/src/ppSubCamera.c
r26432 r26543 317 317 return false; 318 318 } 319 // specify the number of psphot input images 320 psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1); 319 321 pmFPAfileActivate(config->files, false, "PSPHOT.INPUT"); 320 322 -
branches/eam_branches/20091201/pswarp/src/pswarpParseCamera.c
r25522 r26543 142 142 } 143 143 psphotInput->src = psMemIncrRefCounter(output->fpa); 144 // specify the number of psphot input images 145 psMetadataAddS32 (config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "number of inputs", 1); 144 146 145 147 pmFPAfile *psphotInSources = pmFPAfileDefineSkycell(config, output->fpa, "PSPHOT.INPUT.CMF");
Note:
See TracChangeset
for help on using the changeset viewer.
