IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2010, 10:44:09 AM (16 years ago)
Author:
Paul Price
Message:

Bug fixes to get it working. Seems a bit slow, but it's working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppTranslate/src/ppMopsRead.c

    r28212 r28218  
    6868        psFitsClose(fits);
    6969
    70         det->ra = psMemIncrRefCounter(psMetadataLookupVector(NULL, table, "RA_PSF"));
    71         det->dec = psMemIncrRefCounter(psMetadataLookupVector(NULL, table, "DEC_PSF"));
     70        psVector *ra = psMetadataLookupVector(NULL, table, "RA_PSF");
     71        psVector *dec = psMetadataLookupVector(NULL, table, "DEC_PSF");
     72
     73        det->ra = (psVector*)psBinaryOp(NULL, ra, "*", psScalarAlloc(DEG_TO_RAD(1.0), PS_TYPE_F64));
     74        det->dec = (psVector*)psBinaryOp(NULL, dec, "*", psScalarAlloc(DEG_TO_RAD(1.0), PS_TYPE_F64));
    7275        det->x = psMemIncrRefCounter(psMetadataLookupVector(NULL, table, "X_PSF"));
    7376        det->y = psMemIncrRefCounter(psMetadataLookupVector(NULL, table, "Y_PSF"));
     
    7780        }
    7881
    79         psTrace("ppMops.read", 2, "Read %ld rows from %s\n", det->ra->n, (const char*)inNames->data[i]);
     82        psTrace("ppMops.read", 2, "Read %ld rows from %s\n", det->num, (const char*)inNames->data[i]);
    8083
    8184        detections->data[i] = det;
Note: See TracChangeset for help on using the changeset viewer.