IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7609


Ignore:
Timestamp:
Jun 21, 2006, 10:20:11 AM (20 years ago)
Author:
Paul Price
Message:

Adding pmHDUGetHighest

Location:
trunk/psModules/src/camera
Files:
2 edited

Legend:

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

    r7492 r7609  
    6666}
    6767
     68// Get the highest HDU
     69pmHDU *pmHDUGetHighest(const pmFPA *fpa, // The FPA
     70                       const pmChip *chip, // The chip, or NULL
     71                       const pmCell *cell // The cell, or NULL
     72                      )
     73{
     74    pmHDU *hdu = NULL;          // The HDU that's at the highest level
     75    if (fpa) {
     76        hdu = pmHDUFromFPA(fpa);
     77    }
     78    if (!hdu && chip) {
     79        hdu = pmHDUFromChip(chip);
     80    }
     81    if (!hdu && cell) {
     82        hdu = pmHDUFromCell(cell);
     83    }
     84
     85    return hdu;
     86}
     87
    6888void pmHDUPrint(FILE *fd,               // File descriptor to which to print
    6989                const pmHDU *hdu,       // HDU to print
  • trunk/psModules/src/camera/pmHDUUtils.h

    r7492 r7609  
    1010                      const pmCell *cell // The cell, or NULL
    1111                     );
     12
     13// Get the highest HDU in the hierarchy, as supplied
     14pmHDU *pmHDUGetHighest(const pmFPA *fpa, // The FPA
     15                       const pmChip *chip, // The chip, or NULL
     16                       const pmCell *cell // The cell, or NULL
     17                      );
    1218
    1319// Find the HDU in the FPA hierarchy
Note: See TracChangeset for help on using the changeset viewer.