IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 23, 2005, 9:13:06 AM (20 years ago)
Author:
Paul Price
Message:

Worked out some memory leaks and bugs for GPC1 test data

File:
1 edited

Legend:

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

    r5564 r5583  
    149149    }
    150150
    151 #if 0
    152     psString outputMaskName = psStringCopy(outputName);
    153     (void)psStringAppend(&outputMaskName, ".mask");
    154 #ifdef PRODUCTION
    155     psFits *outputMaskFile = psFitsOpen(outputMaskName, "w");
    156 #else
    157     psFits *outputMaskFile = psFitsAlloc(outputMaskName);
    158 #endif
    159     if (! outputMaskFile) {
    160         psErrorStackPrint(stderr, "Can't open output mask image: %s\n", outputMaskName);
    161         exit(EXIT_FAILURE);
    162     }
    163     psFree(outputMaskName);
    164 #endif
    165 
    166151    // Get camera configuration from header if not already defined
    167152    if (! camera) {
     
    298283        exit(EXIT_FAILURE);
    299284    }
     285
    300286#ifdef PRODUCTION
    301287    psFitsClose(inputFile);
     
    304290#endif
    305291
    306 
    307 #if 1
     292#if 0
     293    pmFPAReadMask(input, inputFile);
     294    pmFPAReadWeight(input, inputFile);
     295#else
    308296    {
    309297        // Generate mask and weight frame
     
    353341#endif
    354342
    355     //pmFPAPrint(input);
     343#if 0
     344    pmFPAPrint(input);
     345#endif
    356346
    357347    // Load the calibration frames, if required
     
    825815#ifdef PRODUCTION
    826816    psFitsClose(outputFile);
    827 //    psFitsClose(outputMaskFile);
    828817#else
    829818    psFree(outputFile);
    830 //    psFree(outputMaskFile);
    831819#endif
    832820
Note: See TracChangeset for help on using the changeset viewer.