IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2011, 3:19:36 PM (15 years ago)
Author:
eugene
Message:

merge changes from the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ppTranslate/src/ppMopsMerge.c

    r30532 r30675  
    2222    )
    2323{
    24     float dx = detections->x->data.F32[index] - detections->naxis1->data.S32[index] / 2.0;
    25     float dy = detections->y->data.F32[index] - detections->naxis2->data.S32[index] / 2.0;
    26     return PS_SQR(dx) + PS_SQR(dy);
     24  float dx = (float) (detections->x->data.F32[index] - detections->naxis1->data.S32[index] / 2.0);
     25  float dy = (float) (detections->y->data.F32[index] - detections->naxis2->data.S32[index] / 2.0);
     26  return PS_SQR(dx) + PS_SQR(dy);
    2727}
    2828
     
    165165    if (num == 0) {
    166166        //All detections were NULL?!
    167         psTrace("ppMops.merge", 3, "All %d detections were NULL\n", detections->n);
     167        psTrace("ppMops.merge", 3, "All %ld detections were NULL\n", detections->n);
    168168        return NULL;
    169169    }
    170170    psTrace("ppMops.merge", 2, "%ld sources in merged detections list\n", merged->num);
    171171
    172     merged->seeing /= num;
     172    merged->seeing /= (float) num;
    173173
    174174    return merged;
Note: See TracChangeset for help on using the changeset viewer.