IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2009, 12:08:50 PM (17 years ago)
Author:
beaumont
Message:

merged with head

Location:
branches/cnb_branches/cnb_branch_20090301
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090301

  • branches/cnb_branches/cnb_branch_20090301/ppSub

  • branches/cnb_branches/cnb_branch_20090301/ppSub/src/ppSubLoop.c

    r21524 r23352  
    2323bool ppSubLoop(pmConfig *config)
    2424{
     25    psAssert(config, "Require configuration.");
     26
     27    pmConfigCamerasCull(config, NULL);
     28    pmConfigRecipesCull(config, "PPSUB,PPSTATS,PSPHOT,MASKS,JPEG");
     29
    2530    bool mdok;                          // Status of MD lookup
    2631    const char *statsName = psMetadataLookupStr(&mdok, config->arguments, "STATS"); // Filename for statistics
     
    5964
    6065    pmFPAview *view = pmFPAviewAlloc(0); // Pointer into FPA hierarchy
    61     pmHDU *lastHDU = NULL;              // Last HDU that was updated
    6266
    6367    // Iterate over the FPA hierarchy
     
    99103            if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
    100104                return false;
    101             }
    102 
    103             // Put version information into the header
    104             pmHDU *hdu = pmHDUFromCell(inCell);
    105             if (hdu && hdu != lastHDU) {
    106                 if (!hdu->header) {
    107                     hdu->header = psMetadataAlloc();
    108                 }
    109                 ppSubVersionMetadata(hdu->header);
    110                 lastHDU = hdu;
    111105            }
    112106
     
    183177    }
    184178
     179    psString dump_file = psMetadataLookupStr(&mdok, config->arguments, "-dumpconfig");
     180    if (dump_file) {
     181
     182        pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSUB.INPUT"); // Input file
     183        pmConfigDump(config, input->fpa, dump_file);
     184    }
     185
    185186    return true;
    186187}
Note: See TracChangeset for help on using the changeset viewer.