IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10085


Ignore:
Timestamp:
Nov 18, 2006, 4:06:58 PM (19 years ago)
Author:
Paul Price
Message:

Updating pm{Cell,Chip,FPA}WriteMask APIs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeMask.c

    r9996 r10085  
    8484
    8585    pmFPAview *view = pmFPAviewAlloc(0);// View of FPA, for iteration
    86     pmFPAWrite(fpaOut, data->outFile, config->database, true, false); // Write header only
     86    pmFPAWriteMask(fpaOut, data->outFile, config->database, true, false); // Write header only
    8787    pmChip *chipOut;                    // Output chip of interest
    8888    while ((chipOut = pmFPAviewNextChip(view, fpaOut, 1))) {
    89         pmChipWrite(chipOut, data->outFile, config->database, true, false); // Write header only
     89        pmChipWriteMask(chipOut, data->outFile, config->database, true, false); // Write header only
    9090        pmCell *cellOut;                   // Output cell of interest
    9191        while ((cellOut = pmFPAviewNextCell(view, fpaOut, 1))) {
    92             pmCellWrite(cellOut, data->outFile, config->database, true); // Write header only
     92            pmCellWriteMask(cellOut, data->outFile, config->database, true); // Write header only
    9393
    9494            psImage *suspect = psMetadataLookupPtr(NULL, cellOut->analysis, "MASK.SUSPECT");
     
    103103            if (cellOut->hdu && !cellOut->hdu->blankPHU) {
    104104                psTrace("ppMerge", 5, "Writing out cell HDU.\n");
    105                 pmCellWriteMask(cellOut, data->outFile, config->database);
     105                pmCellWriteMask(cellOut, data->outFile, config->database, false);
    106106                pmCellFreeData(cellOut);
    107107            }
     
    110110        if (chipOut->hdu && !chipOut->hdu->blankPHU) {
    111111            psTrace("ppMerge", 5, "Writing out chip HDU.\n");
    112             pmChipWriteMask(chipOut, data->outFile, config->database);
     112            pmChipWriteMask(chipOut, data->outFile, config->database, false, false);
    113113            pmChipFreeData(chipOut);
    114114        }
     
    117117    if (fpaOut->hdu && !fpaOut->hdu->blankPHU) {
    118118        psTrace("ppMerge", 5, "Writing out FPA HDU.\n");
    119         pmFPAWriteMask(fpaOut, data->outFile, config->database);
     119        pmFPAWriteMask(fpaOut, data->outFile, config->database, false, false);
    120120    }
    121121    pmFPAFreeData(fpaOut);
Note: See TracChangeset for help on using the changeset viewer.