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/ppStack/src/ppStackCamera.c

    r18346 r18653  
    350350    }
    351351
     352    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // Recipe for ppSim
     353    if (!recipe) {
     354        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSTACK_RECIPE);
     355        return false;
     356    }
    352357
    353358    // For photometry, we operate on the chip-mosaicked image
    354359    // we create a copy of the mosaicked image for psphot so we can write out a clean image
    355360    bool mdok = false;
    356     bool doPhotom = psMetadataLookupBool(&mdok, config->arguments, "PHOTOMETRY"); // perform photometry
     361    bool doPhotom = psMetadataLookupBool(&mdok, recipe, "PHOTOMETRY") ||
     362        psMetadataLookupBool(&mdok, config->arguments, "PHOTOMETRY"); // perform photometry
    357363    if (doPhotom) {
    358364        // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by
Note: See TracChangeset for help on using the changeset viewer.