IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2009, 3:40:03 PM (17 years ago)
Author:
Paul Price
Message:

Use the first possible HDU if we don't have one ourselves.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsCopy.c

    r22701 r22703  
    8080
    8181    psMetadata *specs = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications
    82     if (!target->hdu) {
     82
     83    pmHDU *hdu = pmHDUGetFirst(target); // HDU with camera format
     84    if (!hdu) {
    8385        psError(PS_ERR_UNKNOWN, true, "Can't find HDU for FPA");
    8486        return false;
     
    124126    pmHDU *hdu = pmHDUFromChip(target); // Header data unit
    125127    if (!hdu) {
    126         psError(PS_ERR_UNKNOWN, true, "Can't find HDU for chip");
    127         return false;
     128        hdu = pmHDUGetFirst(target->parent);
     129        if (!hdu) {
     130            psError(PS_ERR_UNKNOWN, true, "Can't find HDU for chip");
     131            return false;
     132        }
    128133    }
    129134
     
    168173    pmHDU *hdu = pmHDUFromCell(target); // Header data unit
    169174    if (!hdu) {
    170         psError(PS_ERR_UNKNOWN, true, "Can't find HDU for cell");
    171         return false;
     175        hdu = pmHDUGetFirst(target->parent->parent);
     176        if (!hdu) {
     177            psError(PS_ERR_UNKNOWN, true, "Can't find HDU for cell");
     178            return false;
     179        }
    172180    }
    173181
Note: See TracChangeset for help on using the changeset viewer.