IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 6, 2009, 6:52:51 PM (17 years ago)
Author:
Paul Price
Message:

Making ppSub inverse mode work. Seems to work now --- produces the correct output files for inverse mode on and off, photometry on and off.

Location:
branches/pap/ppSub/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppSub/src

    • Property svn:ignore
      •  

        old new  
        1010stamp-h1
        1111ppSubKernel
         12ppSubErrorCodes.h
         13ppSubErrorCodes.c
  • branches/pap/ppSub/src/ppSubReadoutSubtract.c

    r23642 r23719  
    2323#define WCS_TOLERANCE 0.001             // Tolerance for WCS
    2424
    25 bool ppSubReadoutSubtract(pmConfig *config, const pmFPAview *view)
     25bool ppSubReadoutSubtract(pmConfig *config)
    2626{
    2727    psAssert(config, "Require configuration");
    28     psAssert(view, "Require view");
    29 
    3028
    3129    // Look up recipe values
     
    3533
    3634    bool reverse = psMetadataLookupBool(&mdok, config->arguments, "REVERSE"); // Reverse sense of subtraction?
     35
     36    pmFPAview *view = ppSubViewReadout(); // View to readout
    3737
    3838    // Subtraction is: minuend - subtrahend
     
    9191        psError(PS_ERR_UNKNOWN, false, "Unable to copy concepts from input to output.");
    9292        psFree(outRO);
     93        psFree(view);
    9394        return false;
    9495    }
     
    99100    pmHDU *outHDU = outFPA->hdu;        // Output HDU
    100101    pmChip *outChip = pmFPAfileThisChip(config->files, view, "PPSUB.OUTPUT"); // Output chip
     102    psFree(view);
    101103    if (!outHDU || !inHDU) {
    102104        psError(PS_ERR_UNKNOWN, false, "Unable to find HDU at FPA level to copy astrometry.");
Note: See TracChangeset for help on using the changeset viewer.