IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 5:03:33 PM (17 years ago)
Author:
Paul Price
Message:

Merging pap_branch_20090128. Resolved a small number of conflicts. Compiles, but not tested in detail.

File:
1 edited

Legend:

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

    r21183 r21366  
    6868
    6969        // if (source->type == PM_SOURCE_TYPE_STAR &&
    70         if (source->mode & PM_SOURCE_MODE_CR_LIMIT) continue;
     70        if (source->mode & PM_SOURCE_MODE_CR_LIMIT) continue;
    7171
    7272        if (final) {
     
    7676        }
    7777
    78         // generate model for sources without, or skip if we can't
    79         if (!source->modelFlux) {
    80             if (!pmSourceCacheModel (source, maskVal)) continue;
    81         }
     78        // generate model for sources without, or skip if we can't
     79        if (!source->modelFlux) {
     80            if (!pmSourceCacheModel (source, maskVal)) continue;
     81        }
    8282
    8383        // save the original coords
     
    9696
    9797    // vectors to store stats for each object
    98     // psVector *weight = psVectorAlloc (fitSources->n, PS_TYPE_F32);
     98    // psVector *variance = psVectorAlloc (fitSources->n, PS_TYPE_F32);
    9999    psVector *errors = psVectorAlloc (fitSources->n, PS_TYPE_F32);
    100100
     
    128128        psSparseVectorElement (sparse, i, f);
    129129
    130         // add the per-source weights (border region)
     130        // add the per-source variances (border region)
    131131        switch (SKY_FIT_ORDER) {
    132132          case 1:
     
    208208        pmSource *source = fitSources->data[i];
    209209        pmModel *model = pmSourceGetModel (NULL, source);
    210         pmSourceChisq (model, source->pixels, source->maskObj, source->weight, maskVal);
     210        pmSourceChisq (model, source->pixels, source->maskObj, source->variance, maskVal);
    211211    }
    212212    psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "get chisqs: %f sec (%d elements)\n", psTimerMark ("psphot.linear"), sparse->Nelem);
     
    253253    // accumulate the image statistics from the masked regions
    254254    psF32 **image  = readout->image->data.F32;
    255     psF32 **weight = readout->weight->data.F32;
     255    psF32 **variance = readout->variance->data.F32;
    256256    psImageMaskType  **mask   = readout->mask->data.PS_TYPE_IMAGE_MASK_DATA;
    257257
     
    268268                wt = 1.0;
    269269            } else {
    270                 wt = weight[j][i];
     270                wt = variance[j][i];
    271271            }
    272272            f = image[j][i];
Note: See TracChangeset for help on using the changeset viewer.