IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2009, 7:19:10 PM (17 years ago)
Author:
Paul Price
Message:

Dump configuration on completion of processing, not before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpLoop.c

    r23293 r23314  
    7676    bool status;
    7777
     78    const char *skyCamera = psMetadataLookupStr(NULL, config->arguments,
     79                                                "SKYCELL.CAMERA");  ///< Name of camera for skycell
     80    pmConfigCamerasCull(config, skyCamera);
     81    pmConfigRecipesCull(config, "PSWARP,PPSTATS,PSPHOT,MASKS,JPEG");
     82
     83
    7884    // load the recipe
    7985    psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSWARP_RECIPE);
     
    462468    }
    463469
     470    // Dump configuration
     471    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
     472    if (dump_file) {
     473        pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PSWARP.INPUT"); // Input file
     474        pmConfigDump(config, input->fpa, dump_file);
     475    }
     476
    464477    return true;
    465478}
Note: See TracChangeset for help on using the changeset viewer.