IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 23, 2007, 5:11:19 PM (19 years ago)
Author:
Paul Price
Message:

Enabling different formats for output pmFPAfiles. To do this, needed to overhaul the writing functions to generate a new FPA using the new format, and write that. To get the blank PHU, needed to do similarly for the open function (!), since it writes blanks immediately after opening the file. Tested with inputting 6 megacam split chips and writing to spliced format --- works successfully.

File:
1 edited

Legend:

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

    r10516 r11255  
    3737}
    3838
     39#if 0
    3940// Find the blank (image-less) PHU, given a cell.
    4041static pmHDU *findBlankPHU(const pmCell *cell // The cell for which to find the PHU
     
    5758    return NULL;
    5859}
     60#endif
    5961
    6062//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     
    277279    binItem->data.S32 *= yBin;
    278280
     281    #if 0
    279282    // Copy any headers
    280283    pmHDU *targetHDU = pmHDUFromCell(target); // The target HDU
     
    285288        }
    286289    }
     290
    287291    // Copy the PHU over as well, if required
    288292    pmHDU *targetPHU = findBlankPHU(target); // The target PHU
    289293    if (targetPHU && targetPHU != targetHDU && !targetPHU->header) {
    290         pmHDU *sourcePHU = findBlankPHU(source); // The source PHU
    291         if (sourcePHU->header) {
     294        //        pmHDU *sourcePHU = pmHDUGetHighest(source->parent->parent, source->parent, source); // A source HDU
     295        pmHDU *sourcePHU = findBlankPHU(source); // The target PHU
     296        if (sourcePHU && sourcePHU->header) {
    292297            targetPHU->header = psMetadataCopy(targetPHU->header, sourcePHU->header);
    293298        }
    294299    }
     300    #endif
    295301
    296302    target->data_exists = true;
Note: See TracChangeset for help on using the changeset viewer.