IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 5, 2005, 8:44:00 PM (21 years ago)
Author:
eugene
Message:

adding pmObjects stuff

File:
1 edited

Legend:

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

    r4946 r4949  
    2121
    2222    char         *modelName   = psMetadataLookupPtr (&status, config, "GAL_MODEL");
    23     psModelType   modelType   = psModelSetType (modelName);
    24     psModelRadius modelRadius = psModelRadius_GetFunction (modelType);
     23    pmModelType   modelType   = pmModelSetType (modelName);
     24    pmModelRadius modelRadius = pmModelRadius_GetFunction (modelType);
    2525
    2626    psTimerStart ("psphot");
    2727
    2828    for (int i = 0; i < sources->n; i++) {
    29         psSource *source = sources->data[i];
     29        pmSource *source = sources->data[i];
    3030
    3131        // sources which should not be fitted
     
    5050
    5151        // recalculate the source moments using the larger galaxy moments radius
    52         status = pmSourceMoments_EAM (source, GAL_MOMENTS_RAD);
     52        status = pmSourceMoments (source, GAL_MOMENTS_RAD);
    5353        if (!status) {
    5454          source->type = PS_SOURCE_DROP_GALAXY;  // better choice?
     
    5757
    5858        // use the source moments, etc to guess basic model parameters
    59         psModel  *model  = pmSourceModelGuess (source, modelType);
     59        pmModel  *model  = pmSourceModelGuess (source, modelType);
    6060        x = model->params->data.F32[2];
    6161        y = model->params->data.F32[3];
     
    7575        // fit FLT (not PSF) model (set/unset the pixel mask)
    7676        psImageKeepCircle (source->mask, x, y, model->radius, OR, PSPHOT_MASK_KEEP);
    77         status = pmSourceFitModel_EAM (source, model, false);
     77        status = pmSourceFitModel (source, model, false);
    7878        psImageKeepCircle (source->mask, x, y, model->radius, AND, ~PSPHOT_MASK_KEEP);
    7979        if (!status) {
Note: See TracChangeset for help on using the changeset viewer.