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/ppSubData.c

    r23704 r23719  
    99
    1010#include "ppSub.h"
    11 
    12 
    13 // Image files to activate/deactivate
    14 static const char *imageFiles[] = { "PPSUB.OUTPUT", "PPSUB.OUTPUT.MASK", "PPSUB.OUTPUT.VARIANCE",
    15                                     "PPSUB.OUTPUT.KERNELS", "PPSUB.OUTPUT.JPEG1", "PPSUB.OUTPUT.JPEG2",
    16                                     "PPSUB.INPUT.CONV", "PPSUB.INPUT.CONV.MASK", "PPSUB.INPUT.CONV.VARIANCE",
    17                                     "PPSUB.REF.CONV", "PPSUB.REF.CONV.MASK", "PPSUB.REF.CONV.VARIANCE",
    18                                     NULL };
    19 
    2011
    2112
     
    3223        fclose(data->statsFile);
    3324    }
     25    psFree(data->stamps);
     26    psFree(data->psf);
     27    psFree(data->statsFile);
    3428    psFree(data->stats);
    3529    return;
     
    4438    data->photometry = false;
    4539    data->inverse = false;
     40    data->stamps = NULL;
     41    data->psf = NULL;
    4642    data->statsFile = NULL;
    4743    data->stats = psMetadataAlloc();
    4844    psMetadataAddS32(data->stats, PS_LIST_TAIL, "QUALITY", 0, "Data quality", 0);
    4945
    50     return options;
     46    return data;
    5147}
    5248
     
    6258    }
    6359
    64     if (files & PPSUB_FILES_IMAGE) {
    65         for (int i = 0; imageFiles[i]; i++) {
    66             pmFPAfileActivate(config->files, imageFiles[i], false);
    67         }
    68     }
    69     if (files & PPSUB_FILES_PHOT) {
    70         psphotFilesActivate(config, false);
    71     }
     60    ppSubFilesActivate(config, files, false);
    7261
    7362    psErrorClear();
Note: See TracChangeset for help on using the changeset viewer.