IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35556


Ignore:
Timestamp:
May 9, 2013, 12:08:42 PM (13 years ago)
Author:
eugene
Message:

remove unused variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackCamera.c

    r35167 r35556  
    4747    }
    4848    bool convolve = psMetadataLookupBool(NULL, recipe, "CONVOLVE"); // Convolve images before stack?
    49     bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL");
    50     //    fprintf(stderr,"ppSC: %d\n",doBackground);   
     49
    5150    psArray *runImages = pmFPAfileDefineMultipleFromRun(&status, NULL, config,
    5251                                                        "PPSTACK.INPUT"); // Input images from previous run
     
    218217
    219218            // Grab bkgmodel information here
    220            
    221             //      if (doBackground) {
    222               if ((!bkgmodel) || (strlen(bkgmodel) == 0)) {
    223                 // We have no background models.
    224                 //              fprintf(stderr,"No backgrounds specified, resettting recipe value.\n");
    225                 doBackground = false;
    226                 psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE,
    227                                   "Do photometry on stacked image?", false);
    228 
     219            if ((!bkgmodel) || (strlen(bkgmodel) == 0)) {
     220              // We have no background models.
     221              psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE, "Do photometry on stacked image?", false);
     222            } else {
     223              pmFPAfile *inputBKG = defineFile(config,NULL,"PPSTACK.INPUT.BKGMODEL",bkgmodel, PM_FPA_FILE_IMAGE);
     224              if (!inputBKG) {
     225                psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE, "Do photometry on stacked image?", false);
     226
     227#if (0)
     228                psError(psErrorCodeLast(), false,
     229                        "Unable to define file from bkgmodel %d (%s)",i,bkgmodel);
     230                return(false);
     231#endif
    229232              }
    230               else {
    231                 pmFPAfile *inputBKG = defineFile(config,NULL,"PPSTACK.INPUT.BKGMODEL",bkgmodel,
    232                                                  PM_FPA_FILE_IMAGE);
    233                 if (!inputBKG) {
    234                   // We failed to generate an pmFPAfile, so disable the background construction and continue.
    235                   //              fprintf(stderr,"No backgrounds specified, resettting recipe value.\n");
    236                   doBackground = false;
    237                   psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE,
    238                                     "Do photometry on stacked image?", false);
    239 
    240 #if (0)
    241                   psError(psErrorCodeLast(), false,
    242                           "Unable to define file from bkgmodel %d (%s)",i,bkgmodel);
    243                   return(false);
    244 #endif
    245                 }
    246               }// End bkgmodel
    247               //            }
    248 
    249 
    250            
    251            
     233            } // End bkgmodel
    252234            i++;
    253235        }
Note: See TracChangeset for help on using the changeset viewer.