IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 13, 2005, 3:35:20 PM (21 years ago)
Author:
eugene
Message:

substantial work to match with psLib v.7

File:
1 edited

Legend:

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

    r4977 r5048  
    3131        // sources which should not be fitted
    3232        // skip all valid stars
    33         if (source->type == PS_SOURCE_PSFSTAR) continue;
    34         if (source->type == PS_SOURCE_SATSTAR) continue;
    35         if (source->type == PS_SOURCE_GOODSTAR) continue;
     33        if (source->type == PM_SOURCE_PSFSTAR) continue;
     34        if (source->type == PM_SOURCE_SATSTAR) continue;
     35        if (source->type == PM_SOURCE_GOODSTAR) continue;
    3636
    3737        // skip all likely defects
    38         if (source->type == PS_SOURCE_DEFECT) continue;
    39         if (source->type == PS_SOURCE_SATURATED) continue;
     38        if (source->type == PM_SOURCE_DEFECT) continue;
     39        if (source->type == PM_SOURCE_SATURATED) continue;
    4040
    4141        // skip poorly fitted stars
    42         if (source->type == PS_SOURCE_FAINTSTAR) continue;
    43         if (source->type == PS_SOURCE_POOR_FIT_PSF) continue;
     42        if (source->type == PM_SOURCE_FAINTSTAR) continue;
     43        if (source->type == PM_SOURCE_POOR_FIT_PSF) continue;
    4444
    4545        // XXX EAM when do we pick these up again?
    4646        if (source->moments->SN < GAL_MIN_SN) {
    47           source->type = PS_SOURCE_FAINT_GALAXY;  // better choice?
     47          source->type = PM_SOURCE_FAINT_GALAXY;  // better choice?
    4848          continue;
    4949        }
    5050
    5151        // recalculate the source moments using the larger galaxy moments radius
    52         // XXX EAM : 0.5.0 code used _EAM version
    53         // status = pmSourceMoments (source, GAL_MOMENTS_RAD);
    54         status = pmSourceMoments_EAM (source, GAL_MOMENTS_RAD);
     52        status = pmSourceMoments (source, GAL_MOMENTS_RAD);
    5553        if (!status) {
    56           source->type = PS_SOURCE_DROP_GALAXY;  // better choice?
     54          source->type = PM_SOURCE_DROP_GALAXY;  // better choice?
    5755          continue;
    5856        }
     
    8482          // if the fit fails, we need to change the classification
    8583          psLogMsg ("psphot", 3, "GAL fit failed for %f, %f (%d iterations, %f radius)\n", x, y, model->nIter, model->radius);
    86           source->type = PS_SOURCE_FAIL_FIT_GAL;  // better choice?
     84          source->type = PM_SOURCE_FAIL_FIT_GAL;  // better choice?
    8785          source->modelFLT = model;
    8886          Nfail ++;
     
    9593          // if the fit fails, we need to change the classification
    9694          psLogMsg ("psphot", 3, "GAL fit poor for %f, %f (%d iterations, %f radius)\n", x, y, model->nIter, model->radius);
    97           source->type = PS_SOURCE_POOR_FIT_GAL;  // better choice?
     95          source->type = PM_SOURCE_POOR_FIT_GAL;  // better choice?
    9896          source->modelFLT = model;
    9997          Nfail ++;
     
    102100
    103101        // accept the model
    104         source->type = PS_SOURCE_GALAXY;
     102        source->type = PM_SOURCE_GALAXY;
    105103        source->modelFLT = model;
    106104        Niter += model[0].nIter;
Note: See TracChangeset for help on using the changeset viewer.