IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 3, 2010, 9:08:48 PM (16 years ago)
Author:
Paul Price
Message:

Finished rework of ppMops. Not yet tested though.

File:
1 edited

Legend:

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

    r28209 r28212  
    4141            continue;
    4242        }
    43         ppMopsDetections *det = ppMopsDetectionsAlloc(size);
     43        ppMopsDetections *det = ppMopsDetectionsAlloc();
    4444        det->header = header;
     45        det->num = size;
    4546
    4647        det->raBoresight = psMemIncrRefCounter(psMetadataLookupStr(NULL, header, "FPA.RA"));
     
    6061        det->naxis2 = psMetadataLookupS32(NULL, header, "IMNAXIS2");
    6162
    62         det->table = psFitsReadTableAllColumns(fits); // Table of interest
     63        psMetadata *table = det->table = psFitsReadTableAllColumns(fits); // Table of interest
    6364        if (!table) {
    6465            psError(psErrorCodeLast(), false, "Unable to read table %d", i);
     
    6667        }
    6768        psFitsClose(fits);
    68 
    69         psTrace("ppMops.read", 2, "Read %ld rows from %s\n", numGood, (const char*)inNames->data[i]);
    7069
    7170        det->ra = psMemIncrRefCounter(psMetadataLookupVector(NULL, table, "RA_PSF"));
     
    7877        }
    7978
     79        psTrace("ppMops.read", 2, "Read %ld rows from %s\n", det->ra->n, (const char*)inNames->data[i]);
     80
    8081        detections->data[i] = det;
    8182    }
Note: See TracChangeset for help on using the changeset viewer.