Changeset 12950
- Timestamp:
- Apr 21, 2007, 9:54:27 AM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 added
- 6 edited
-
Makefile.am (modified) (1 diff)
-
psphot.c (modified) (2 diffs)
-
psphot.h (modified) (2 diffs)
-
psphotChoosePSF.c (modified) (1 diff)
-
psphotGuessModels.c (modified) (1 diff)
-
psphotMakeResiduals.c (added)
-
psphotReadout.c (modified) (2 diffs)
-
psphotTestSourceOutput.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/Makefile.am
r12805 r12950 56 56 psphotDeblendSatstars.c \ 57 57 psphotMosaicSubimage.c \ 58 psphotMakeResiduals.c \ 59 psphotTestSourceOutput.c \ 58 60 psphotAddNoise.c 59 61 -
trunk/psphot/src/psphot.c
r12805 r12950 18 18 // load input data (config and images (signal, noise, mask) 19 19 if (!psphotParseCamera (config)) { 20 psErrorStackPrint(stderr, "Error setting up the camera ");20 psErrorStackPrint(stderr, "Error setting up the camera\n"); 21 21 exit (psphotGetExitStatus()); 22 22 } … … 24 24 // call psphot for each readout 25 25 if (!psphotImageLoop (config)) { 26 psErrorStackPrint(stderr, "Error in the psphot image loop ");26 psErrorStackPrint(stderr, "Error in the psphot image loop\n"); 27 27 exit (psphotGetExitStatus()); 28 28 } -
trunk/psphot/src/psphot.h
r12921 r12950 21 21 bool psphotDefineFiles (pmConfig *config, pmFPAfile *input); 22 22 23 23 24 // XXX test functions 24 25 bool psphotTestPSF (pmReadout *readout, psArray *sources, psMetadata *recipe); 25 26 bool pmPSFtestModel (psArray *sources, char *modelName, float RADIUS, bool poissonErrors, psPolynomial2D *psfTrendMask); 26 27 bool psphotTestSourceOutput (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf); 27 28 psArray *psphotFakeSources (); 28 29 … … 104 105 bool psphotDeblendSatstars (psArray *sources, psMetadata *recipe); 105 106 107 bool psphotMakeResiduals (psArray *sources, psMetadata *recipe, pmPSF *psf); 108 106 109 #endif -
trunk/psphot/src/psphotChoosePSF.c
r12792 r12950 221 221 } 222 222 223 // build a PSF residual image 224 if (!psphotMakeResiduals (try->sources, recipe, try->psf)) { 225 psError(PSPHOT_ERR_PSF, false, "Unable to construct residual table for PSF"); 226 return NULL; 227 } 228 223 229 // XXX test dump of psf star data and psf-subtracted image 224 230 if (psTraceGetLevel("psphot.psfstars") > 5) { -
trunk/psphot/src/psphotGuessModels.c
r12792 r12950 55 55 // set the source PSF model 56 56 source->modelPSF = modelPSF; 57 source->modelPSF->residuals = psf->residuals; 57 58 } 58 59 psLogMsg ("psphot.models", 4, "built models for %ld objects: %f sec\n", sources->n, psTimerMark ("psphot")); -
trunk/psphot/src/psphotReadout.c
r12792 r12950 64 64 } 65 65 66 // psArray *bounds = psphotGetBounds (); 67 // psArray *sources = psphotBoundsToSources (); 68 66 69 // construct sources and measure basic stats 67 70 psArray *sources = psphotSourceStats (readout, recipe, peaks); … … 106 109 psphotGuessModels (readout, sources, recipe, psf); 107 110 111 // XXX test output of models 112 // psphotTestSourceOutput (readout, sources, recipe, psf); 113 108 114 if (dump) psphotSaveImage (NULL, readout->image, "image.v0.fits"); 109 115
Note:
See TracChangeset
for help on using the changeset viewer.
