IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2013, 2:24:05 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130207
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130207

  • branches/eam_branches/ipp-20130207/ppStack/src/ppStackCamera.c

    r35081 r35236  
    4848    bool convolve = psMetadataLookupBool(NULL, recipe, "CONVOLVE"); // Convolve images before stack?
    4949    bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL");
    50    
     50    //    fprintf(stderr,"ppSC: %d\n",doBackground);   
    5151    psArray *runImages = pmFPAfileDefineMultipleFromRun(&status, NULL, config,
    5252                                                        "PPSTACK.INPUT"); // Input images from previous run
     
    218218
    219219            // Grab bkgmodel information here
    220             if (doBackground) {
    221               if (!bkgmodel ||  strlen(bkgmodel) == 0) {
     220           
     221            //      if (doBackground) {
     222              if ((!bkgmodel) || (strlen(bkgmodel) == 0)) {
    222223                // 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
    223229              }
    224230              else {
     
    227233                if (!inputBKG) {
    228234                  // We failed to generate an pmFPAfile, so disable the background construction and continue.
     235                  //              fprintf(stderr,"No backgrounds specified, resettting recipe value.\n");
    229236                  doBackground = false;
    230237                  psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE,
     
    238245                }
    239246              }// End bkgmodel
    240             }
     247              //            }
    241248
    242249
Note: See TracChangeset for help on using the changeset viewer.