IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 4, 2005, 5:33:32 AM (21 years ago)
Author:
eugene
Message:

simultaneous PSF fitting, better background, basic deblending

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.c

    r5643 r5672  
    1111    pmPSFClump   psfClump;
    1212    bool         status;
     13
     14    psphotModelGroupInit ();
    1315
    1416    config = psphotArguments (&argc, argv);
     
    2527    // measure image stats for initial guess
    2628    sky = psphotImageStats (imdata, config);
     29
     30    // psPolynomial2D *skyModel = psphotImageBackground (imdata, config, sky);
     31    psphotImageBackground (imdata, config, sky);
    2732
    2833    // find the peaks in the image
     
    5358
    5459    switch (FITMODE) {
     60      case -2:
     61        psphotEnsemblePSF (imdata, config, sources, psf, sky);
     62        psphotReapplyPSF (imdata, config, sources, psf, sky);
     63        break;
     64
     65      case -1:
     66        psphotEnsemblePSF (imdata, config, sources, psf, sky);
     67        break;
     68
    5569      case 0:
    5670        psphotFixedPSF (imdata, config, sources, psf, sky);
     
    6377
    6478      case 2:
    65       // fit extended objects with galaxy models
     79        // fit extended objects with galaxy models
    6680        psphotApplyPSF (imdata, config, sources, psf, sky);
    6781        psphotFitGalaxies (imdata, config, sources, sky);
     
    6983
    7084      case 3:
    71       // fit extended objects with galaxy models
     85        // fit extended objects with galaxy models
    7286        psphotFixedPSF (imdata, config, sources, psf, sky);
    7387        psphotFitGalaxies (imdata, config, sources, sky);
Note: See TracChangeset for help on using the changeset viewer.