IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24247 for trunk/ppMops/src


Ignore:
Timestamp:
May 26, 2009, 3:13:39 PM (17 years ago)
Author:
Paul Price
Message:

Fix memory problem when writing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMops/src/ppMops.c

    r24245 r24247  
    5252    for (int i = 0; i < numIn; i++) {
    5353        psMetadata *inRow = detections->data[i]; // Input row
    54         psMetadata *outRow = output->data[i] = psMetadataAlloc(); // Output row
    5554
    5655        double ra = psMetadataLookupF64(NULL, inRow, "RA_PSF");
     
    6867            continue;
    6968        }
     69
     70        psMetadata *outRow = output->data[numOut] = psMetadataAlloc(); // Output row
    7071
    7172        numOut++;
     
    131132
    132133        // These are completely fake
    133         psMetadataAddF32(outHeader, PS_LIST_TAIL, "LIMITMAG", 0, "Limiting magnitude", 25.0);
     134        psMetadataAddF32(outHeader, PS_LIST_TAIL, "LIMITMAG", 0, "Limiting magnitude (FAKE)", 25.0);
    134135        psMetadataAddF32(outHeader, PS_LIST_TAIL, "DE1", 0, "Detection efficiency (FAKE)", 0.0);
    135136        psMetadataAddF32(outHeader, PS_LIST_TAIL, "DE2", 0, "Detection efficiency (FAKE)", 0.0);
Note: See TracChangeset for help on using the changeset viewer.