IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2005, 2:32:16 PM (21 years ago)
Author:
eugene
Message:

adding fixed-psf fitting

File:
1 edited

Legend:

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

    r5628 r5643  
    4949    if (!strcasecmp (breakPt, "PSFFIT")) exit (0);
    5050
    51     // test PSF on all except SATURATE and DEFECT (artifacts)
    52     psphotApplyPSF (imdata, config, sources, psf, sky);
    53     if (!strcasecmp (breakPt, "PSFSUB")) exit (0);
     51    int FITMODE = psMetadataLookupS32 (&status, config, "FIT_MODE");
     52    if (!status) FITMODE = 0;
    5453
    55     // fit extended objects with galaxy models
    56     psphotFitGalaxies (imdata, config, sources, sky);
    57     if (!strcasecmp (breakPt, "GALSUB")) exit (0);
     54    switch (FITMODE) {
     55      case 0:
     56        psphotFixedPSF (imdata, config, sources, psf, sky);
     57        break;
     58
     59      case 1:
     60        // test PSF on all except SATURATE and DEFECT (artifacts)
     61        psphotApplyPSF (imdata, config, sources, psf, sky);
     62        break;
     63
     64      case 2:
     65      // fit extended objects with galaxy models
     66        psphotApplyPSF (imdata, config, sources, psf, sky);
     67        psphotFitGalaxies (imdata, config, sources, sky);
     68        break;
     69
     70      case 3:
     71      // fit extended objects with galaxy models
     72        psphotFixedPSF (imdata, config, sources, psf, sky);
     73        psphotFitGalaxies (imdata, config, sources, sky);
     74        break;
     75    }
    5876
    5977    // write out data in appropriate format
Note: See TracChangeset for help on using the changeset viewer.