IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 21, 2008, 4:01:59 PM (18 years ago)
Author:
Paul Price
Message:

Need to check to see if photometry is turned on both before AND after defining the camera --- because it can be turned on on the command line or in a top-level recipe, or in a camera-dependent recipe.

File:
1 edited

Legend:

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

    r18289 r18653  
    136136    }
    137137
     138    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim
     139    if (!recipe) {
     140        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSUB_RECIPE);
     141        return false;
     142    }
     143
    138144    // psPhot input
    139     if (psMetadataLookupBool(NULL, config->arguments, "PHOTOMETRY")) {
     145    if (psMetadataLookupBool(NULL, config->arguments, "PHOTOMETRY") ||
     146        psMetadataLookupBool(NULL, recipe, "PHOTOMETRY") ) {
     147        psMetadataAddBool(config->arguments, PS_LIST_TAIL, "PHOTOMETRY", 0, "Perform photometry?", true);
    140148        psphotModelClassInit ();        // load implementation-specific models
    141149        pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
Note: See TracChangeset for help on using the changeset viewer.