IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 31, 2006, 12:51:15 PM (20 years ago)
Author:
Paul Price
Message:

Changes to HDU generation: don't add chips/cells that have their own HDU; remove error message when there's no cells (it just means it's an empty PHU); don't recurse to lower levels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmHDUGenerate.c

    r7168 r7254  
    2626    for (int i = 0; i < cells->n; i++) {
    2727        pmCell *cell = cells->data[i];  // A cell
    28         result |= psListAdd(list, PS_LIST_TAIL, cell);
     28        if (!cell->hdu) {               // Don't add cells that have their own HDU
     29            result |= psListAdd(list, PS_LIST_TAIL, cell);
     30        }
    2931    }
    3032
     
    4446    for (int i = 0; i < chips->n; i++) {
    4547        pmChip *chip = chips->data[i];  // A chip
    46         result |= addCellsFromChip(list, chip);
     48        if (! chip->hdu) {              // Don't add chips that have their own HDU
     49            result |= addCellsFromChip(list, chip);
     50        }
    4751    }
    4852
     
    263267    }
    264268    if (numReadouts == 0 || type == 0) {
    265         psError(PS_ERR_IO, true, "Unable to find images within HDU.\n");
     269        // Nothing from which to create an HDU
    266270        psFree(cells);
    267271        return false;
Note: See TracChangeset for help on using the changeset viewer.