IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15651


Ignore:
Timestamp:
Nov 19, 2007, 12:22:18 PM (18 years ago)
Author:
Paul Price
Message:

ppMerge wasn't calling pmFPAUpdateNames, so output headers didn't have required keywords.

Location:
trunk/ppMerge/src
Files:
2 edited

Legend:

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

    r15380 r15651  
    108108    pmFPAview *view = pmFPAviewAlloc(0);// View of FPA, for iteration
    109109    int cellNum = -1;                   // Cell number in the whole FPA
     110    if (data->out->hdu) {
     111        pmFPAUpdateNames(data->out, NULL, NULL);
     112    }
    110113    pmFPAWrite(data->out, data->outFile, config->database, true, false); // Write header only
    111114    pmChip *chip;                       // Chip of interest
     
    116119    }
    117120    while ((chip = pmFPAviewNextChip(view, fpa, 1))) {
    118         if (chip->hdu && chip->hdu->header) {
    119             // Data will exist soon
    120             chip->data_exists = true;
     121        if (chip->hdu) {
     122            pmFPAUpdateNames(data->out, chip, NULL);
     123            if (chip->hdu->header) {
     124                // Data will exist soon
     125                chip->data_exists = true;
     126            }
    121127        }
    122128        pmChipWrite(chip, data->outFile, config->database, true, false); // Write header only
     
    124130        while ((cell = pmFPAviewNextCell(view, fpa, 1))) {
    125131            cellNum++;
    126             if (cell->hdu && cell->hdu->header) {
    127                 // Data will exist soon
    128                 chip->data_exists = true;
     132            if (cell->hdu) {
     133                pmFPAUpdateNames(data->out, chip, cell);
     134                if (cell->hdu->header) {
     135                    // Data will exist soon
     136                    chip->data_exists = true;
     137                }
    129138            }
    130139            pmCellWrite(cell, data->outFile, config->database, true); // Write header only
  • trunk/ppMerge/src/ppMergeMask.c

    r15611 r15651  
    8585
    8686    pmFPAview *view = pmFPAviewAlloc(0);// View of FPA, for iteration
     87    if (fpaOut->hdu) {
     88        pmFPAUpdateNames(fpaOut, NULL, NULL);
     89    }
    8790    pmFPAWriteMask(fpaOut, data->outFile, config->database, true, false); // Write header only
    8891    pmChip *chipOut;                    // Output chip of interest
    8992    while ((chipOut = pmFPAviewNextChip(view, fpaOut, 1))) {
     93        if (chipOut->hdu) {
     94            pmFPAUpdateNames(fpaOut, chipOut, NULL);
     95        }
    9096        pmChipWriteMask(chipOut, data->outFile, config->database, true, false); // Write header only
    9197        pmCell *cellOut;                   // Output cell of interest
    9298        while ((cellOut = pmFPAviewNextCell(view, fpaOut, 1))) {
     99            if (cellOut->hdu) {
     100                pmFPAUpdateNames(fpaOut, chipOut, cellOut);
     101            }
    93102            pmCellWriteMask(cellOut, data->outFile, config->database, true); // Write header only
    94103
Note: See TracChangeset for help on using the changeset viewer.