IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2005, 6:03:51 PM (21 years ago)
Author:
Paul Price
Message:

pmFPAMorph compiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/phase2/papPhase2.c

    r5633 r5651  
    1717#include "pmSubtractBias.h"
    1818#include "pmChipMosaic.h"
     19#include "pmFPAMorph.h"
    1920
    2021// Phase 2 needs to:
     
    287288    }
    288289
     290    pmFPAPrint(input);
     291    exit(1);
     292
    289293#ifdef PRODUCTION
    290294    psFitsClose(inputFile);
     
    296300    pmFPAReadMask(input, inputFile);
    297301    pmFPAReadWeight(input, inputFile);
    298 #else
     302//#else
    299303    {
    300304        // Generate mask and weight frame
     
    827831    psLogMsg("phase2", PS_LOG_INFO, "Processing completed after %f sec.\n", psTimerMark("phase2"));
    828832
     833
     834#if 1
     835    // Testing pmFPAMorph
     836    psMetadata *newCamera = psMetadataConfigParse(NULL, NULL, "megacam_splice.config", true);
     837    pmFPA *newFPA = pmFPAConstruct(newCamera);
     838    pmFPAMorph(newFPA, input, true, 0, 0);
     839    psFits *newFile = psFitsAlloc("morph.fits");
     840    pmFPAWrite(newFile, newFPA, database);
     841    psFree(newFile);
     842    psFree(newFPA);
     843#endif
     844
     845#if 0
    829846    // Write the output
    830847    pmFPAWrite(outputFile, input, database);
    831848    pmFPAWriteMask(input, outputFile);
    832849    pmFPAWriteWeight(input, outputFile);
     850#endif
    833851
    834852    psLogMsg("phase2", PS_LOG_INFO, "Output completed after %f sec.\n", psTimerMark("phase2"));
Note: See TracChangeset for help on using the changeset viewer.