IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12950


Ignore:
Timestamp:
Apr 21, 2007, 9:54:27 AM (19 years ago)
Author:
eugene
Message:

adding residual tables (from eam_02_branch)

Location:
trunk/psphot/src
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/Makefile.am

    r12805 r12950  
    5656        psphotDeblendSatstars.c  \
    5757        psphotMosaicSubimage.c   \
     58        psphotMakeResiduals.c    \
     59        psphotTestSourceOutput.c \
    5860        psphotAddNoise.c
    5961
  • trunk/psphot/src/psphot.c

    r12805 r12950  
    1818    // load input data (config and images (signal, noise, mask)
    1919    if (!psphotParseCamera (config)) {
    20         psErrorStackPrint(stderr, "Error setting up the camera");
     20        psErrorStackPrint(stderr, "Error setting up the camera\n");
    2121        exit (psphotGetExitStatus());
    2222    }
     
    2424    // call psphot for each readout
    2525    if (!psphotImageLoop (config)) {
    26         psErrorStackPrint(stderr, "Error in the psphot image loop");
     26        psErrorStackPrint(stderr, "Error in the psphot image loop\n");
    2727        exit (psphotGetExitStatus());
    2828    }
  • trunk/psphot/src/psphot.h

    r12921 r12950  
    2121bool            psphotDefineFiles (pmConfig *config, pmFPAfile *input);
    2222
     23
    2324// XXX test functions
    2425bool            psphotTestPSF (pmReadout *readout, psArray *sources, psMetadata *recipe);
    2526bool            pmPSFtestModel (psArray *sources, char *modelName, float RADIUS, bool poissonErrors, psPolynomial2D *psfTrendMask);
    26 
     27bool psphotTestSourceOutput (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf);
    2728psArray        *psphotFakeSources ();
    2829
     
    104105bool            psphotDeblendSatstars (psArray *sources, psMetadata *recipe);
    105106
     107bool            psphotMakeResiduals (psArray *sources, psMetadata *recipe, pmPSF *psf);
     108
    106109#endif
  • trunk/psphot/src/psphotChoosePSF.c

    r12792 r12950  
    221221    }
    222222
     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
    223229    // XXX test dump of psf star data and psf-subtracted image
    224230    if (psTraceGetLevel("psphot.psfstars") > 5) {
  • trunk/psphot/src/psphotGuessModels.c

    r12792 r12950  
    5555    // set the source PSF model
    5656    source->modelPSF = modelPSF;
     57    source->modelPSF->residuals = psf->residuals;
    5758  }
    5859  psLogMsg ("psphot.models", 4, "built models for %ld objects: %f sec\n", sources->n, psTimerMark ("psphot"));
  • trunk/psphot/src/psphotReadout.c

    r12792 r12950  
    6464    }
    6565
     66    // psArray *bounds = psphotGetBounds ();
     67    // psArray *sources = psphotBoundsToSources ();
     68
    6669    // construct sources and measure basic stats
    6770    psArray *sources = psphotSourceStats (readout, recipe, peaks);
     
    106109    psphotGuessModels (readout, sources, recipe, psf);
    107110
     111    // XXX test output of models
     112    // psphotTestSourceOutput (readout, sources, recipe, psf);
     113
    108114    if (dump) psphotSaveImage (NULL, readout->image,  "image.v0.fits");
    109115
Note: See TracChangeset for help on using the changeset viewer.