IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2009, 2:33:59 PM (17 years ago)
Author:
Paul Price
Message:

Put statistics files in RUN metadata. Removed unnecessary argument from pmConfigDump. Reorganised ppSub so configuration is carried by the ppSubData, which means that the configuration can be dumped when we free the ppSubData (similar operation as for writing statistics).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubLoop.c

    r23740 r23753  
    2020#include "ppSub.h"
    2121
    22 bool ppSubLoop(pmConfig *config, ppSubData *data)
     22bool ppSubLoop(ppSubData *data)
    2323{
     24    psAssert(data, "Require processing data");
     25    pmConfig *config = data->config;    // Configuration
    2426    psAssert(config, "Require configuration.");
    2527
     
    4547    }
    4648
    47     if (!ppSubMatchPSFs(config, data)) {
     49    if (!ppSubMatchPSFs(data)) {
    4850        psError(PS_ERR_UNKNOWN, false, "Unable to match PSFs.");
    4951        return false;
     
    7476    }
    7577
    76     if (!data->quality && !ppSubMakePSF(config, data)) {
     78    if (!data->quality && !ppSubMakePSF(data)) {
    7779        psError(PS_ERR_UNKNOWN, false, "Unable to generate PSF.");
    7880        return false;
     
    101103    }
    102104
    103     if (!data->quality && !ppSubReadoutPhotometry("PPSUB.OUTPUT", config, data)) {
     105    if (!data->quality && !ppSubReadoutPhotometry("PPSUB.OUTPUT", data)) {
    104106        psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry.");
    105107        return false;
     
    112114
    113115    // Perform statistics on the cell
    114     if (!ppSubReadoutStats(config, data)) {
     116    if (!ppSubReadoutStats(data)) {
    115117        psError(PS_ERR_UNKNOWN, false, "Unable to collect statistics");
    116118        return false;
     
    150152        }
    151153
    152         if (!data->quality && !ppSubReadoutPhotometry("PPSUB.INVERSE", config, data)) {
     154        if (!data->quality && !ppSubReadoutPhotometry("PPSUB.INVERSE", data)) {
    153155            psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry.");
    154156            return false;
     
    168170    }
    169171
    170     psString dump_file = psMetadataLookupStr(NULL, config->arguments, "-dumpconfig");
    171     if (dump_file) {
    172         pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSUB.INPUT"); // Input file
    173         pmConfigDump(config, input->fpa, dump_file);
    174     }
    175 
    176172    return true;
    177173}
Note: See TracChangeset for help on using the changeset viewer.