IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 31, 2006, 9:40:34 AM (20 years ago)
Author:
eugene
Message:

changed name of radiusTMP to radiusFit in pmModel

File:
1 edited

Legend:

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

    r9270 r9813  
    2424
    2525    // set the fit radius based on the object flux limit and the model
    26     model->radiusTMP = (RADIUS_TYPE) (modelRadiusPSF (model->params, PSF_FIT_NSIGMA*moments->dSky) + PSF_FIT_PADDING);
    27     if (isnan(model->radiusTMP)) psAbort ("apply_psf_model", "error in radius");
     26    model->radiusFit = (RADIUS_TYPE) (modelRadiusPSF (model->params, PSF_FIT_NSIGMA*moments->dSky) + PSF_FIT_PADDING);
     27    if (isnan(model->radiusFit)) psAbort ("apply_psf_model", "error in radius");
    2828       
    2929    if (source->mode & PM_SOURCE_MODE_SATSTAR) {
    30         model->radiusTMP *= 2;
     30        model->radiusFit *= 2;
    3131    }
    3232
    33     bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusTMP);
     33    bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit);
    3434    return status;
    3535}
     
    4141
    4242    // set the fit radius based on the object flux limit and the model
    43     model->radiusTMP = (RADIUS_TYPE) (modelRadiusPSF (model->params, PSF_FIT_NSIGMA*moments->dSky) + dR + PSF_FIT_PADDING);
    44     if (isnan(model->radiusTMP)) psAbort ("apply_psf_model", "error in radius");
     43    model->radiusFit = (RADIUS_TYPE) (modelRadiusPSF (model->params, PSF_FIT_NSIGMA*moments->dSky) + dR + PSF_FIT_PADDING);
     44    if (isnan(model->radiusFit)) psAbort ("apply_psf_model", "error in radius");
    4545       
    4646    if (source->mode &  PM_SOURCE_MODE_SATSTAR) {
    47         model->radiusTMP *= 2;
     47        model->radiusFit *= 2;
    4848    }
    4949
    50     bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusTMP);
     50    bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit);
    5151    return status;
    5252}
     
    7474
    7575    // set the fit radius based on the object flux limit and the model
    76     model->radiusTMP = (RADIUS_TYPE) (modelRadiusEXT (model->params, EXT_FIT_NSIGMA*moments->dSky) + EXT_FIT_PADDING);
    77     if (isnan(model->radiusTMP)) psAbort (__func__, "error in radius");
     76    model->radiusFit = (RADIUS_TYPE) (modelRadiusEXT (model->params, EXT_FIT_NSIGMA*moments->dSky) + EXT_FIT_PADDING);
     77    if (isnan(model->radiusFit)) psAbort (__func__, "error in radius");
    7878
    7979    // redefine the pixels if needed
    80     bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusTMP);
     80    bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit);
    8181    return status;
    8282}
Note: See TracChangeset for help on using the changeset viewer.