IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 20, 2006, 2:49:44 PM (20 years ago)
Author:
Paul Price
Message:

Having mosaicked, conform the header appropriately so it will be recognised.

File:
1 edited

Legend:

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

    r8823 r8863  
    1111#include "pmHDUUtils.h"
    1212#include "pmFPAMosaic.h"
     13#include "pmConfig.h"
    1314
    1415#define CELL_LIST_BUFFER 50             // Buffer size for cell lists
     
    10501051    pmHDU *targetHDU = pmHDUFromChip(target); // The HDU for the target
    10511052    targetHDU->header = psMetadataCopy(targetHDU->header, sourceHDU->header);
     1053    pmHDU *phu = pmHDUGetHighest(target->parent, target, NULL);
     1054    if (!phu || !phu->header) {
     1055        psError(PS_ERR_UNKNOWN, true, "Unable to find HDU after mosaicking.\n");
     1056        return false;
     1057    }
     1058    if (!pmConfigConformHeader(phu->header, phu->format)) {
     1059        psError(PS_ERR_UNKNOWN, false, "Unable to conform header after mosaicking.\n");
     1060        return false;
     1061    }
    10521062
    10531063    return true;
     
    11781188    targetHDU->header = psMetadataCopy(targetHDU->header, sourceHDU->header);
    11791189
     1190    if (!pmConfigConformHeader(targetHDU->header, targetHDU->format)) {
     1191        psError(PS_ERR_UNKNOWN, false, "Unable to conform header after mosaicking.\n");
     1192        return false;
     1193    }
     1194
    11801195    return true;
    11811196}
Note: See TracChangeset for help on using the changeset viewer.